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

Unified Diff: third_party/logilab/astroid/utils.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/scoped_nodes.py ('k') | third_party/logilab/common/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/astroid/utils.py
diff --git a/third_party/logilab/astroid/utils.py b/third_party/logilab/astroid/utils.py
index 936c8b5a833b274e7b1bc4bb05cd71f4880e1a17..ae72a92c48080162b141f3d8541d833aca3108fb 100644
--- a/third_party/logilab/astroid/utils.py
+++ b/third_party/logilab/astroid/utils.py
@@ -18,6 +18,7 @@
"""this module contains some utilities to navigate in the tree or to
extract information from it
"""
+from __future__ import print_function
__docformat__ = "restructuredtext en"
@@ -109,22 +110,22 @@ def _check_children(node):
for child in node.get_children():
ok = False
if child is None:
- print "Hm, child of %s is None" % node
+ print("Hm, child of %s is None" % node)
continue
if not hasattr(child, 'parent'):
- print " ERROR: %s has child %s %x with no parent" % (
- node, child, id(child))
+ print(" ERROR: %s has child %s %x with no parent" % (
+ node, child, id(child)))
elif not child.parent:
- print " ERROR: %s has child %s %x with parent %r" % (
- node, child, id(child), child.parent)
+ print(" ERROR: %s has child %s %x with parent %r" % (
+ node, child, id(child), child.parent))
elif child.parent is not node:
- print " ERROR: %s %x has child %s %x with wrong parent %s" % (
- node, id(node), child, id(child), child.parent)
+ print(" ERROR: %s %x has child %s %x with wrong parent %s" % (
+ node, id(node), child, id(child), child.parent))
else:
ok = True
if not ok:
- print "lines;", node.lineno, child.lineno
- print "of module", node.root(), node.root().name
+ print("lines;", node.lineno, child.lineno)
+ print("of module", node.root(), node.root().name)
raise AstroidBuildingException
_check_children(child)
« no previous file with comments | « third_party/logilab/astroid/scoped_nodes.py ('k') | third_party/logilab/common/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698