Module Expr Str Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Num Assign NameStore Call NameLoad BinOpAdd Call NameLoad NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr orelse If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore BinOpMod Call NameLoad Str NameLoad Expr Call NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Raise Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad If CompareIn NameLoad NameLoad body Return Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr BinOpMod AttributeLoad NameLoad attr Call NameLoad keyword NameLoad decorator_list decorator_list
N/A N/A 
Helpers for comparing version strings.
 N/A functools N/A inspect N/A logging oslo_config cfg N/A six oslo_log._i18n _ N/A LOG N/A N/A logging getLogger __name__ N/A CONF N/A cfg CONF N/A _DEPRECATED_EXCEPTIONS N/A set N/A deprecated_opts N/A N/A N/A cfg BoolOpt fatal_deprecations default False help Enables or disables fatal status of deprecations. register_options N/A N/A N/A N/A N/A Register configuration options used by this library.

    .. note: This is optional since the options are also registered
        automatically when the functions in this module are used.

     N/A N/A N/A CONF register_opts deprecated_opts N/A deprecated N/A object N/A N/A A decorator to mark callables as deprecated.

    This decorator logs a deprecation message when the callable it decorates is
    used. The message will include the release where the callable was
    deprecated, the release where it may be removed and possibly an optional
    replacement. It also logs a message when a deprecated exception is being
    caught in a try-except block, but not when subclasses of that exception
    are being caught.

    Examples:

    1. Specifying the required deprecated release

    >>> @deprecated(as_of=deprecated.ICEHOUSE)
    ... def a(): pass

    2. Specifying a replacement:

    >>> @deprecated(as_of=deprecated.ICEHOUSE, in_favor_of='f()')
    ... def b(): pass

    3. Specifying the release where the functionality may be removed:

    >>> @deprecated(as_of=deprecated.ICEHOUSE, remove_in=+1)
    ... def c(): pass

    4. Specifying the deprecated functionality will not be removed:

    >>> @deprecated(as_of=deprecated.ICEHOUSE, remove_in=None)
    ... def d(): pass

    5. Specifying a replacement, deprecated functionality will not be removed:

    >>> @deprecated(as_of=deprecated.ICEHOUSE, in_favor_of='f()',
    ...             remove_in=None)
    ... def e(): pass

    .. warning::

       The hook used to detect when a deprecated exception is being
       *caught* does not work under Python 3. Deprecated exceptions
       are still logged if they are thrown.

     N/A BEXAR B N/A FOLSOM F N/A GRIZZLY G N/A HAVANA H N/A ICEHOUSE I N/A JUNO J N/A KILO K N/A LIBERTY L N/A MITAKA M N/A NEWTON N N/A OCATA O N/A _RELEASES N/A B F G H I J K L M N O Bexar Folsom Grizzly Havana Icehouse Juno Kilo Liberty Mitaka Newton Ocata N/A _deprecated_msg_with_alternative N/A _ %(what)s is deprecated as of %(as_of)s in favor of %(in_favor_of)s and may be removed in %(remove_in)s. N/A _deprecated_msg_no_alternative N/A _ %(what)s is deprecated as of %(as_of)s and may be removed in %(remove_in)s. It will not be superseded. N/A _deprecated_msg_with_alternative_no_removal N/A _ %(what)s is deprecated as of %(as_of)s in favor of %(in_favor_of)s. N/A _deprecated_msg_with_no_alternative_no_removal N/A _ %(what)s is deprecated as of %(as_of)s. It will not be superseded. __init__ N/A N/A self as_of in_favor_of remove_in what N/A None 2 None N/A N/A Initialize decorator

        :param as_of: the release deprecating the callable. Constants
            are define in this class for convenience.
        :param in_favor_of: the replacement for the callable (optional)
        :param remove_in: an integer specifying how many releases to wait
            before removing (default: 2)
        :param what: name of the thing being deprecated (default: the
            callable's name)

         N/A N/A self as_of as_of N/A N/A self in_favor_of in_favor_of N/A N/A self remove_in remove_in N/A N/A self what what N/A __call__ N/A N/A self func_or_cls N/A N/A N/A N/A N/A self what N/A N/A N/A self what N/A N/A func_or_cls __name__ () N/A N/A msg details N/A N/A self _build_message N/A N/A N/A inspect isfunction func_or_cls N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A report_deprecated_feature LOG msg details N/A N/A func_or_cls args kwargs N/A N/A N/A six wraps func_or_cls N/A wrapped N/A N/A N/A N/A inspect isclass func_or_cls N/A N/A orig_init N/A func_or_cls __init__ new_init N/A N/A self N/A args kwargs N/A N/A N/A N/A self __class__ _DEPRECATED_EXCEPTIONS N/A N/A N/A report_deprecated_feature LOG msg details N/A N/A orig_init self args kwargs N/A N/A N/A functools wraps orig_init assigned N/A __name__ __doc__ N/A N/A func_or_cls __init__ new_init N/A N/A N/A _DEPRECATED_EXCEPTIONS add func_or_cls N/A N/A issubclass func_or_cls Exception N/A ExceptionMeta N/A type N/A __subclasscheck__ N/A N/A self subclass N/A N/A N/A N/A self _DEPRECATED_EXCEPTIONS N/A N/A N/A report_deprecated_feature LOG msg details N/A N/A N/A N/A super ExceptionMeta self __subclasscheck__ subclass N/A N/A N/A func_or_cls N/A N/A N/A six add_metaclass ExceptionMeta func_or_cls N/A N/A N/A _DEPRECATED_EXCEPTIONS add func_or_cls N/A func_or_cls N/A N/A N/A TypeError deprecated can be used only with functions or classes N/A _get_safe_to_remove_release N/A N/A self release N/A N/A N/A remove_in N/A self remove_in N/A N/A remove_in None N/A N/A remove_in 0 N/A new_release N/A chr N/A N/A ord release remove_in N/A N/A new_release N/A self _RELEASES N/A N/A N/A N/A self _RELEASES N/A new_release N/A N/A new_release N/A _build_message N/A N/A self N/A N/A N/A details N/A dict what N/A self what as_of N/A N/A self _RELEASES N/A N/A self as_of remove_in N/A N/A self _get_safe_to_remove_release N/A self as_of N/A N/A self in_favor_of N/A N/A N/A details N/A in_favor_of N/A self in_favor_of N/A N/A N/A N/A self remove_in None N/A N/A self remove_in 0 N/A N/A msg N/A self _deprecated_msg_with_alternative N/A N/A msg N/A self _deprecated_msg_with_alternative_no_removal N/A N/A N/A N/A N/A self remove_in None N/A N/A self remove_in 0 N/A N/A msg N/A self _deprecated_msg_no_alternative N/A N/A msg N/A self _deprecated_msg_with_no_alternative_no_removal N/A N/A msg details N/A N/A N/A _deprecated_messages_sent N/A report_deprecated_feature N/A N/A logger msg N/A args kwargs N/A N/A Call this function when a deprecated feature is used.

    If the system is configured for fatal deprecations then the message
    is logged at the 'critical' level and :class:`DeprecatedConfig` will
    be raised.

    Otherwise, the message will be logged (once) at the 'warn' level.

    :raises: :class:`DeprecatedConfig` if the system is configured for
             fatal deprecations.
     N/A stdmsg N/A N/A _ Deprecated: %s msg N/A N/A register_options N/A N/A CONF fatal_deprecations N/A N/A N/A N/A logger critical stdmsg args kwargs N/A N/A DeprecatedConfig msg stdmsg N/A sent_args N/A N/A _deprecated_messages_sent setdefault msg N/A list N/A N/A args sent_args N/A N/A N/A N/A N/A sent_args append args N/A N/A N/A logger warning stdmsg args kwargs N/A DeprecatedConfig N/A Exception N/A N/A message N/A _ Fatal call to deprecated config: %(msg)s __init__ N/A N/A self msg N/A N/A N/A N/A N/A N/A super Exception self __init__ N/A N/A self message N/A dict msg msg N/A N/A