summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2010-09-22 11:26:12 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2010-09-22 11:26:12 +0200
commit0d91bc7550005785b46d920a595e8f793bf30f6b (patch)
treee0238f14ff40d4a788d36922b6d3a8ab3c4b84e0
parent326f84469c40d5f6ca656036f5212bba4ce09c34 (diff)
downloadastroid-git-0d91bc7550005785b46d920a595e8f793bf30f6b.tar.gz
remove usage of decorator to restore py2.3 compat
--HG-- branch : stable
-rw-r--r--raw_building.py1
-rw-r--r--scoped_nodes.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/raw_building.py b/raw_building.py
index f34961d9..534f58c5 100644
--- a/raw_building.py
+++ b/raw_building.py
@@ -31,7 +31,6 @@
# with logilab-astng. If not, see <http://www.gnu.org/licenses/>.
"""this module contains a set of functions to create astng trees from scratch
(build_* functions) or from living object (object_build_* functions)
-
"""
__docformat__ = "restructuredtext en"
diff --git a/scoped_nodes.py b/scoped_nodes.py
index c890661f..b096249e 100644
--- a/scoped_nodes.py
+++ b/scoped_nodes.py
@@ -519,7 +519,6 @@ class Function(StmtMixIn, Lambda):
# (e.g. pylint...) when is_method() return True
return self.type != 'function' and isinstance(self.parent.frame(), Class)
- @cached
def decoratornames(self):
"""return a list of decorator qualified names"""
result = set()
@@ -531,7 +530,7 @@ class Function(StmtMixIn, Lambda):
for infnode in decnode.infer():
result.add(infnode.qname())
return result
-
+ decoratornames = cached(decoratornames)
def is_bound(self):
"""return true if the function is bound to an Instance or a class"""