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

Unified Diff: third_party/logilab/common/debugger.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/dbf.py ('k') | third_party/logilab/common/decorators.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/common/debugger.py
diff --git a/third_party/logilab/common/debugger.py b/third_party/logilab/common/debugger.py
index 1f540a18982d2b1957b39259f3954ac51722bb35..7556322777fee918f51b47f64f5648677ca52ace 100644
--- a/third_party/logilab/common/debugger.py
+++ b/third_party/logilab/common/debugger.py
@@ -26,9 +26,6 @@
"""
-
-from __future__ import print_function
-
__docformat__ = "restructuredtext en"
try:
@@ -39,10 +36,9 @@ import os
import os.path as osp
import sys
from pdb import Pdb
+from cStringIO import StringIO
import inspect
-from logilab.common.compat import StringIO
-
try:
from IPython import PyColorize
except ImportError:
@@ -186,8 +182,8 @@ class Debugger(Pdb):
if not arg:
try:
source, start_lineno = getsource(self.curframe)
- print(colorize(''.join(source), start_lineno,
- self.curframe.f_lineno))
+ print colorize(''.join(source), start_lineno,
+ self.curframe.f_lineno)
except KeyboardInterrupt:
pass
except IOError:
« no previous file with comments | « third_party/logilab/common/dbf.py ('k') | third_party/logilab/common/decorators.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698