summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-08-24 07:36:17 (GMT)
committerGeorg Brandl <georg@python.org>2005-08-24 07:36:17 (GMT)
commit6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4 (patch)
treead5a9b9e440de9c8299df9d8c7f8de1c77dd8f73 /Lib/pdb.py
parent79c122f568d1d08779d564cee375d62a0ea114db (diff)
downloadcpython-6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4.zip
cpython-6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4.tar.gz
cpython-6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4.tar.bz2
bug [ 1192315 ] 'clear -1' in pdb
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 7b5dffa..b00f68b 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -450,11 +450,14 @@ class Pdb(bdb.Bdb, cmd.Cmd):
return
numberlist = arg.split()
for i in numberlist:
+ if not (0 <= i < len(bdb.Breakpoint.bpbynumber)):
+ print 'No breakpoint numbered', i
+ continue
err = self.clear_bpbynumber(i)
if err:
print '***', err
else:
- print 'Deleted breakpoint %s ' % (i,)
+ print 'Deleted breakpoint', i
do_cl = do_clear # 'c' is already an abbreviation for 'continue'
def do_where(self, arg):