summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 06:58:49 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 06:58:49 (GMT)
commit50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f (patch)
treefc9ad776ef967b99c3c40b43ec7a90e960378fed /Lib/bdb.py
parent95d97c7390beb72083dac5a801cadfb4c1379fe5 (diff)
downloadcpython-50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f.zip
cpython-50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f.tar.gz
cpython-50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f.tar.bz2
Changed references to the reprlib module to use its new name.
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 74870e3..5e4d7b4 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -325,7 +325,7 @@ class Bdb:
#
def format_stack_entry(self, frame_lineno, lprefix=': '):
- import linecache, repr
+ import linecache, reprlib
frame, lineno = frame_lineno
filename = self.canonic(frame.f_code.co_filename)
s = '%s(%r)' % (filename, lineno)
@@ -338,13 +338,13 @@ class Bdb:
else:
args = None
if args:
- s = s + repr.repr(args)
+ s = s + reprlib.repr(args)
else:
s = s + '()'
if '__return__' in frame.f_locals:
rv = frame.f_locals['__return__']
s = s + '->'
- s = s + repr.repr(rv)
+ s = s + reprlib.repr(rv)
line = linecache.getline(filename, lineno)
if line: s = s + lprefix + line.strip()
return s