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

Unified Diff: third_party/pylint/pyreverse/utils.py

Issue 776883002: pylint: upgrade to 1.4.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
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
===================================================================
--- third_party/pylint/pyreverse/utils.py (revision 293207)
+++ third_party/pylint/pyreverse/utils.py (working copy)
@@ -16,6 +16,7 @@
"""
generic classes/functions for pyreverse core/extensions
"""
+from __future__ import print_function
import sys
import re
@@ -118,8 +119,8 @@
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 @@
"""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