summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-11-10 22:27:35 (GMT)
committerGuido van Rossum <guido@python.org>1994-11-10 22:27:35 (GMT)
commita558e37eb4a17540cc6277c4cd571e88d6e60b9d (patch)
treec1259befcf4840ac47eb6b4a93dee31f7de50541 /Lib/bdb.py
parente23b62f28854a9f12412b34a5b971297ad3caf6d (diff)
downloadcpython-a558e37eb4a17540cc6277c4cd571e88d6e60b9d.zip
cpython-a558e37eb4a17540cc6277c4cd571e88d6e60b9d.tar.gz
cpython-a558e37eb4a17540cc6277c4cd571e88d6e60b9d.tar.bz2
improved prompt format
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 9b50767..7642ed0 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -242,7 +242,7 @@ class Bdb: # Basic Debugger
#
- def format_stack_entry(self, frame_lineno):
+ def format_stack_entry(self, frame_lineno, lprefix=': '):
import linecache, repr, string
frame, lineno = frame_lineno
filename = frame.f_code.co_filename
@@ -260,7 +260,7 @@ class Bdb: # Basic Debugger
s = s + '->'
s = s + repr.repr(rv)
line = linecache.getline(filename, lineno)
- if line: s = s + ': ' + string.strip(line)
+ if line: s = s + lprefix + string.strip(line)
return s
# The following two methods can be called by clients to use