Manage the deprecation message handling. Messages are dropped for
versions more recent than the 'compatible' version. Example:
|
__init__(self,
module_name=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
compatibility(self,
compatible_version)
Set the compatible version. |
source code
|
|
|
deprecated(self,
version=None,
reason=None,
stacklevel=2,
name=None,
doc=None)
Display a deprecation message only if the version is older than the
compatible version. |
source code
|
|
|
|
|
moved(self,
version,
modpath,
objname)
use to tell that a callable has been moved to a new module. |
source code
|
|
|
class_renamed(self,
version,
old_name,
new_class,
message=None) |
source code
|
|
|
class_moved(self,
version,
new_class,
old_name=None,
message=None)
nice wrapper around class_renamed when a class has been moved into
another module |
source code
|
|
|
warn(self,
version=None,
reason="",
stacklevel=2)
Display a deprecation message only if the version is older than the
compatible version. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|