diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-18 12:41:58 +0200 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-18 12:41:58 +0200 |
commit | 4ab63a1857ea86c681f6aebfbb12d65133d388c1 (patch) | |
tree | 994a5718207c4c6e8f1b0538e5749b18c6dff127 | |
parent | cf909524c43015917b36392b7cf5fcc104fafdfb (diff) | |
download | astroid-git-4ab63a1857ea86c681f6aebfbb12d65133d388c1.tar.gz |
fix : stay 2.3 compat
-rw-r--r-- | patchcomptransformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchcomptransformer.py b/patchcomptransformer.py index c04b4137..b4f448d4 100644 --- a/patchcomptransformer.py +++ b/patchcomptransformer.py @@ -127,7 +127,7 @@ class ASTNGTransformer(BaseTransformer): def funcdef(self, nodelist): node = BaseTransformer.funcdef(self, nodelist) - if node.decorators is not None: + if getattr(node, 'decorators', None) is not None: fix_lineno(node.decorators, nodelist[0]) return fix_lineno(node, nodelist[-5], nodelist[-1], nodelist[-3]) |