twisted.python.deprecate._DeprecatedAttribute(object)
class documentationtwisted.python.deprecate
View Source
(View In Hierarchy)
Wrapper for deprecated attributes.
This is intended to be used by _ModuleProxy
.
Calling _DeprecatedAttribute.get
will issue a warning and retrieve the underlying attribute's value.
Instance Variable | module | The original module instance containing this attribute (type: module ) |
Instance Variable | fqpn | Fully qualified Python name for the deprecated attribute (type: str ) |
Instance Variable | version | Version that the attribute was deprecated in (type: incremental.Version ) |
Instance Variable | message | Deprecation message (type: str ) |
Method | __init__ | Initialise a deprecated name wrapper. |
Method | get | Get the underlying attribute value and issue a deprecation warning. |