bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints (GH-24646)

This commit is contained in:
huzhaojie 2021-06-11 23:17:56 +08:00 committed by GitHub
parent fc98266ff6
commit 4cb6ba1432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 1 deletions

View file

@ -893,7 +893,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
except ValueError:
err = "Invalid line number (%s)" % arg
else:
bplist = self.get_breaks(filename, lineno)
bplist = self.get_breaks(filename, lineno)[:]
err = self.clear_break(filename, lineno)
if err:
self.error(err)