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

Unified Diff: third_party/pylint/pyreverse/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/pylint/pyreverse/main.py ('k') | third_party/pylint/reporters/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pylint/pyreverse/utils.py
diff --git a/third_party/pylint/pyreverse/utils.py b/third_party/pylint/pyreverse/utils.py
index 3d12d41d3133ad60d4910eea44fab9c26f3d0042..5d6d13356ae4acfe91fb5a34127557b05c0521fa 100644
--- a/third_party/pylint/pyreverse/utils.py
+++ b/third_party/pylint/pyreverse/utils.py
@@ -16,6 +16,7 @@
"""
generic classes/functions for pyreverse core/extensions
"""
+from __future__ import print_function
import sys
import re
@@ -118,8 +119,8 @@ class FilterMixIn(object):
for nummod in mode.split('+'):
try:
__mode += MODES[nummod]
- except KeyError, ex:
- print >> sys.stderr, 'Unknown filter mode %s' % ex
+ except KeyError as ex:
+ print('Unknown filter mode %s' % ex, file=sys.stderr)
self.__mode = __mode
@@ -127,5 +128,5 @@ class FilterMixIn(object):
"""return true if the node should be treated
"""
visibility = get_visibility(getattr(node, 'name', node))
- return not (self.__mode & VIS_MOD[visibility])
+ return not self.__mode & VIS_MOD[visibility]
« no previous file with comments | « third_party/pylint/pyreverse/main.py ('k') | third_party/pylint/reporters/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698