celery.utils.deprecated
¶
Deprecation utilities.
- celery.utils.deprecated.Callable(deprecation=None, removal=None, alternative=None, description=None)[源代码]¶
Decorator for deprecated functions.
A deprecation warning will be emitted when the function is called.
- 参数:
deprecation (str) -- Version that marks first deprecation, if this argument isn't set a
PendingDeprecationWarning
will be emitted instead.removal (str) -- Future version when this feature will be removed.
alternative (str) -- Instructions for an alternative solution (if any).
description (str) -- Description of what's being deprecated.