summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2013-07-24 19:06:06 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2013-07-24 19:06:06 +0300
commitc889378f70116bc4babbefcde5b467c753b2e807 (patch)
treee7382dfb55d347e5bec215b2022e3634e05b3bf5
parente556fa2424be3df11c92a18548ea868004e8adb8 (diff)
downloadastroid-git-c889378f70116bc4babbefcde5b467c753b2e807.tar.gz
Revert change.
-rw-r--r--rebuilder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rebuilder.py b/rebuilder.py
index 9261ff63..e3e1fc16 100644
--- a/rebuilder.py
+++ b/rebuilder.py
@@ -250,7 +250,7 @@ class TreeRebuilder(object):
meth.extra_decorators.append(newnode.value)
except (AttributeError, KeyError):
continue
- elif getattr(node.targets[0], 'id', None) == '__metaclass__':
+ elif getattr(newnode.targets[0], 'name', None) == '__metaclass__':
self._metaclass[-1] = _infer_metaclass(node.value) or 'type'
newnode.set_line_info(newnode.last_child())
return newnode