diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2010-09-22 11:26:12 +0200 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2010-09-22 11:26:12 +0200 |
| commit | 0d91bc7550005785b46d920a595e8f793bf30f6b (patch) | |
| tree | e0238f14ff40d4a788d36922b6d3a8ab3c4b84e0 | |
| parent | 326f84469c40d5f6ca656036f5212bba4ce09c34 (diff) | |
| download | astroid-git-0d91bc7550005785b46d920a595e8f793bf30f6b.tar.gz | |
remove usage of decorator to restore py2.3 compat
--HG--
branch : stable
| -rw-r--r-- | raw_building.py | 1 | ||||
| -rw-r--r-- | scoped_nodes.py | 3 |
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""" |
