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

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

Issue 719313003: Revert "pylint: upgrade to 1.3.1" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
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
diff --git a/third_party/logilab/common/cli.py b/third_party/logilab/common/cli.py
index 0ad4e4c3f6aa5509621be12a5f0baeb5a9df4da5..42837329020b30bc3405c6f93c036af59d238b7d 100644
--- a/third_party/logilab/common/cli.py
+++ b/third_party/logilab/common/cli.py
@@ -44,8 +44,7 @@ Example::
__docformat__ = "restructuredtext en"
-from six.moves import builtins, input
-
+from logilab.common.compat import raw_input, builtins
if not hasattr(builtins, '_'):
builtins._ = str
@@ -108,7 +107,7 @@ class CLIHelper:
"""loop on user input, exit on EOF"""
while True:
try:
- line = input('>>> ')
+ line = raw_input('>>> ')
except EOFError:
print
break
@@ -195,7 +194,7 @@ class CLIHelper:
import traceback
traceback.print_exc()
print 'ERROR in help method %s'% (
- command_help_method.__name__)
+ command_help_method.func_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