auxlib.deprecation

auxlib.deprecation.deprecate_module_with_proxy(module_name, module_dict, deprecated_attributes=None)[source]
Usage:
deprecate_module_with_proxy(__name__, locals()) # at bottom of module
auxlib.deprecation.deprecated(func)[source]

This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emmitted when the function is used.

auxlib.deprecation.deprecated_import(module_name)[source]
auxlib.deprecation.import_and_wrap_deprecated(module_name, module_dict, warn_import=True)[source]
Usage:
import_and_wrap_deprecated(‘conda.common.connection’, locals()) # looks for conda.common.connection.__all__