Chromium Code Reviews| Index: third_party/logilab/astroid/as_string.py |
| =================================================================== |
| --- third_party/logilab/astroid/as_string.py (revision 293207) |
| +++ third_party/logilab/astroid/as_string.py (working copy) |
| @@ -148,7 +148,7 @@ |
| bases = bases and '(%s)' % bases or '' |
| else: |
| metaclass = node.metaclass() |
| - if metaclass: |
| + if metaclass and not node.has_metaclass_hack(): |
| if bases: |
| bases = '(%s, metaclass=%s)' % (bases, metaclass.name) |
| else: |