diff options
author | Georg Brandl <georg@python.org> | 2005-08-24 07:36:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-24 07:36:17 (GMT) |
commit | 6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4 (patch) | |
tree | ad5a9b9e440de9c8299df9d8c7f8de1c77dd8f73 /Lib/pdb.py | |
parent | 79c122f568d1d08779d564cee375d62a0ea114db (diff) | |
download | cpython-6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4.zip cpython-6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4.tar.gz cpython-6d2b346140ed0f3bc4c67fc33bf69a60c496e6a4.tar.bz2 |
bug [ 1192315 ] 'clear -1' in pdb
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): |