Skip to content

Commit 0162748

Browse files
committed
Issue #19076: Don't pass the redundant 'file' argument to self.error().
1 parent 93c5b00 commit 0162748

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def do_break(self, arg, temporary = 0):
673673
# now set the break point
674674
err = self.set_break(filename, line, temporary, cond, funcname)
675675
if err:
676-
self.error(err, file=self.stdout)
676+
self.error(err)
677677
else:
678678
bp = self.get_breaks(filename, line)[-1]
679679
self.message("Breakpoint %d at %s:%d" %

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Core and Builtins
2727
Library
2828
-------
2929

30+
- Issue #19076: Don't pass the redundant 'file' argument to self.error().
31+
3032
- Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.
3133

3234
- Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError

0 commit comments

Comments
 (0)