summaryrefslogtreecommitdiff
path: root/deprecation.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-07-31 19:33:22 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-07-31 19:33:22 +0200
commit117d91a95f8cc2e16525ae372210c6a7e3dbfc31 (patch)
treed7e993b4e697baacccf7603cd4fab2222b875a4f /deprecation.py
parentfb2ee10b7d82d8e93c5d980f33bbb312fc36eb72 (diff)
downloadlogilab-common-117d91a95f8cc2e16525ae372210c6a7e3dbfc31.tar.gz
[cleanup] remove dead code
Diffstat (limited to 'deprecation.py')
-rw-r--r--deprecation.py22
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