diff options
author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-31 19:33:22 +0200 |
---|---|---|
committer | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-31 19:33:22 +0200 |
commit | 117d91a95f8cc2e16525ae372210c6a7e3dbfc31 (patch) | |
tree | d7e993b4e697baacccf7603cd4fab2222b875a4f /deprecation.py | |
parent | fb2ee10b7d82d8e93c5d980f33bbb312fc36eb72 (diff) | |
download | logilab-common-117d91a95f8cc2e16525ae372210c6a7e3dbfc31.tar.gz |
[cleanup] remove dead code
Diffstat (limited to 'deprecation.py')
-rw-r--r-- | deprecation.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/deprecation.py b/deprecation.py index 0822f07..bbb7cda 100644 --- a/deprecation.py +++ b/deprecation.py @@ -99,28 +99,6 @@ def moved(modpath, objname): return getattr(m, objname)(*args, **kwargs) return callnew -# from logilab.common.modutils import LazyObject - -# class WarnLazyObject(LazyObject): -# def __init__(self, oldname, newname): -# # XXX doesn't work if module isn't in a package -# package, module = newname.rsplit('.', 1) -# super(WarnLazyObject, self).__init__(package, module) -# self.oldname = oldname -# self.newname = newname -# print 'hop', oldname, newname -# sys.modules[oldname] = self - -# def __getobj(self): -# if self._imported is None: -# message = "module %s has moved, it's now %s" % ( -# self.oldname, self.newname) -# warn(message, DeprecationWarning, stacklevel=2) -# return super(WarnLazyObject, self).__getobj() - - -# module_moved = WarnLazyObject - def obsolete(reason="This function is obsolete"): """this function is an alternative to `deprecated_function` when there's no real replacement for the deprecated function |