Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# 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.')(_)
@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)
@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())
@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
@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
@removals.remove
@property
def devices(self):
return self.config.devices
@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