Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de1fb66

Browse files
committed
Issue #19076: Merge with 3.4.
2 parents 5c6e6fc + ad5ffd4 commit de1fb66

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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
@@ -108,6 +108,8 @@ Core and Builtins
108108
Library
109109
-------
110110

111+
- Issue #19076: Don't pass the redundant 'file' argument to self.error().
112+
111113
- Issue #16382: Improve exception message of warnings.warn() for bad
112114
category. Initial patch by Phil Elson.
113115

0 commit comments

Comments
 (0)