logilab-common #108205 Deprecation Warning filter [validation pending]

Implement a handler to refine the deprecation message handling. Messages are dropped for versions more recent than the 'compatible' version. Example:

handler = deprecation.DeprecationHandler("module_name")
handler.compatibility('1.3')

handler.warn('1.2', "message.")

@handler.deprecated('1.2', 'Message')
def any_func():
    pass
prioritynormal
typeenhancement
done in0.60.0
load0.500
load left0.000
closed by#e1d5f4b98134 Add version handling to the deprecation module (closes #108205).
patchdeprecation: implement moved/class_renamed/class_moved using DeprecationManager [applied]Add version handling to the deprecation module (closes #108205). [applied]