How to use the debtcollector.removals function in debtcollector

To help you get started, we’ve selected a few debtcollector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openstack / neutron / neutron / __init__.py View on Github external
#    under the License.

import gettext

from debtcollector import removals
import six


if six.PY2:
    gettext.install('neutron', unicode=1)
else:
    gettext.install('neutron')


# flake8: noqa
six.moves.builtins.__dict__['_'] = removals.remove(
    message='Builtin _ translation function is deprecated in OpenStack; '
            'use the function from _i18n module for your project.')(_)
github openstack / python-keystoneclient / keystoneclient / v3 / roles.py View on Github external
    @removals.remove(message='Use %s.delete instead.' % deprecation_msg,
                     version='3.9.0', removal_version='4.0.0')
    def delete_implied(self, prior_role, implied_role, **kwargs):
        return InferenceRuleManager(self.client).delete(prior_role,
                                                        implied_role)
github openstack / python-keystoneclient / keystoneclient / auth / base.py View on Github external
@removals.remove(
    message='keystoneclient auth plugins are deprecated. Use keystoneauth.',
    version='2.1.0',
    removal_version='3.0.0'
)
def get_available_plugin_names():
    """Get the names of all the plugins that are available on the system.

    This is particularly useful for help and error text to prompt a user for
    example what plugins they may specify.

    :returns: A list of names.
    :rtype: frozenset
    """
    mgr = stevedore.ExtensionManager(namespace=PLUGIN_NAMESPACE,
                                     invoke_on_load=False)
    return frozenset(mgr.names())
github openstack / monasca-notification / monasca_notification / plugins / slack_notifier.py View on Github external
    @removals.remove(
        message='Configuration of notifier is available through oslo.cfg',
        version='1.9.0',
        removal_version='3.0.0'
    )
    def config(self, config_dict):
        pass
github dit / dit / dit / algorithms / distribution_optimizers.py View on Github external
@removals.remove(message="Please see dit.pid.PID_BROJA.",
                 version='1.0.0.dev8')
def pid_broja(dist, sources, target, niter=10, return_opt=False, rv_mode=None):
    """
    Compute the BROJA partial information decomposition.

    Parameters
    ----------
    dist : Distribution
        The distribution to compute the partial information decomposition of.
    sources : iterable
        The source variables of the distribution.
    target : iterable
        The target variable of the distribution.
    niter : int
        The number of optimization steps to perform.
    return_opt : bool
github a10networks / a10-neutron-lbaas / a10_neutron_lbaas / a10_config.py View on Github external
    @removals.remove
    @property
    def devices(self):
        return self.config.devices
github openstack / monasca-notification / monasca_notification / plugins / webhook_notifier.py View on Github external
    @removals.remove(
        message='Configuration of notifier is available through oslo.cfg',
        version='1.9.0',
        removal_version='3.0.0'
    )
    def config(self, config_dict):
        pass