Index: third_party/logilab/common/debugger.py |
=================================================================== |
--- third_party/logilab/common/debugger.py (revision 292986) |
+++ third_party/logilab/common/debugger.py (working copy) |
@@ -26,6 +26,9 @@ |
""" |
+ |
+from __future__ import print_function |
+ |
__docformat__ = "restructuredtext en" |
try: |
@@ -36,9 +39,10 @@ |
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: |
@@ -182,8 +186,8 @@ |
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: |