diff options
author | Sylvain <syt@logilab.fr> | 2009-03-04 11:54:23 +0100 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2009-03-04 11:54:23 +0100 |
commit | b2a6afa68ec49734659ceeb7961218cf5f17b204 (patch) | |
tree | f810b5d258b2ee0defd451c26f2ef73ea9465dae /debugger.py | |
parent | 1f235a7313bba3369d109bc1eb9996a6963ef134 (diff) | |
download | logilab-common-b2a6afa68ec49734659ceeb7961218cf5f17b204.tar.gz |
toward py3k
passing tests: unittest_shellutils, unittest_textutils, unittest_modutils, unittest_table, unittest_tree
Diffstat (limited to 'debugger.py')
-rw-r--r-- | debugger.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debugger.py b/debugger.py index e401a0f..411258e 100644 --- a/debugger.py +++ b/debugger.py @@ -5,7 +5,7 @@ - overrides list command to search for current block instead of using 5 lines of context -:copyright: 2000-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:copyright: 2000-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr :license: General Public License version 2 - http://www.gnu.org/licenses """ @@ -18,9 +18,9 @@ except ImportError: import os import os.path as osp import sys -from pdb import Pdb -from cStringIO import StringIO import inspect +from pdb import Pdb +from io import StringIO try: from IPython import PyColorize @@ -162,8 +162,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: |