summaryrefslogtreecommitdiff
path: root/patchcomptransformer.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-10-18 12:41:58 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-10-18 12:41:58 +0200
commit4ab63a1857ea86c681f6aebfbb12d65133d388c1 (patch)
tree994a5718207c4c6e8f1b0538e5749b18c6dff127 /patchcomptransformer.py
parentcf909524c43015917b36392b7cf5fcc104fafdfb (diff)
downloadastroid-git-4ab63a1857ea86c681f6aebfbb12d65133d388c1.tar.gz
fix : stay 2.3 compat
Diffstat (limited to 'patchcomptransformer.py')
-rw-r--r--patchcomptransformer.py2
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])