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

Unified Diff: third_party/logilab/common/cli.py

Issue 739393004: Revert "Revert "pylint: upgrade to 1.3.1"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 6 years, 1 month 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/common/clcommands.py ('k') | third_party/logilab/common/compat.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/common/cli.py
===================================================================
--- third_party/logilab/common/cli.py (revision 293047)
+++ third_party/logilab/common/cli.py (working copy)
@@ -44,7 +44,8 @@
__docformat__ = "restructuredtext en"
-from logilab.common.compat import raw_input, builtins
+from six.moves import builtins, input
+
if not hasattr(builtins, '_'):
builtins._ = str
@@ -107,7 +108,7 @@
"""loop on user input, exit on EOF"""
while True:
try:
- line = raw_input('>>> ')
+ line = input('>>> ')
except EOFError:
print
break
@@ -194,7 +195,7 @@
import traceback
traceback.print_exc()
print 'ERROR in help method %s'% (
- command_help_method.func_name)
+ command_help_method.__name__)
help_do_help = ("help", "help [topic|command]",
_("print help message for the given topic/command or \
« no previous file with comments | « third_party/logilab/common/clcommands.py ('k') | third_party/logilab/common/compat.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698