diff options
Diffstat (limited to 'rebuilder.py')
-rw-r--r-- | rebuilder.py | 2 |
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 |