Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: third_party/logilab/astroid/as_string.py

Issue 753543006: pylint: upgrade to 1.4.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/logilab/astroid/__pkginfo__.py ('k') | third_party/logilab/astroid/bases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/astroid/as_string.py
diff --git a/third_party/logilab/astroid/as_string.py b/third_party/logilab/astroid/as_string.py
index f19713d9f1722e8470443e2b86e945cfd2aad5e0..f627f9e8832acbace4f24c9840270943e6577080 100644
--- a/third_party/logilab/astroid/as_string.py
+++ b/third_party/logilab/astroid/as_string.py
@@ -148,7 +148,7 @@ class AsStringVisitor(object):
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:
« no previous file with comments | « third_party/logilab/astroid/__pkginfo__.py ('k') | third_party/logilab/astroid/bases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698