| Index: third_party/logilab/common/deprecation.py
|
| ===================================================================
|
| --- third_party/logilab/common/deprecation.py (revision 293207)
|
| +++ third_party/logilab/common/deprecation.py (working copy)
|
| @@ -125,11 +125,12 @@
|
| return self.class_deprecated(version)(old_name, (new_class,), clsdict)
|
| except (NameError, TypeError):
|
| # old-style class
|
| + warn = self.warn
|
| class DeprecatedClass(new_class):
|
| """FIXME: There might be a better way to handle old/new-style class
|
| """
|
| def __init__(self, *args, **kwargs):
|
| - self.warn(version, message, stacklevel=3)
|
| + warn(version, message, stacklevel=3)
|
| new_class.__init__(self, *args, **kwargs)
|
| return DeprecatedClass
|
|
|
|
|