Decorators

kinto.core.decorators.synchronized(method)

Class method decorator to make sure two threads do not execute some code at the same time (c.f Java synchronized keyword).

The decorator installs a mutex on the class instance.

kinto.core.decorators.deprecate_kwargs(deprecated)

A decorator to deprecate keyword arguments.

Parameters

deprecated (dict) – The keywords mapping (old: new)