[Python-checkins] cpython (3.4): Issue #19076: Don't pass the redundant 'file' argument to self.error().
berker.peksag
python-checkins at python.org
Sat Jul 12 17:26:04 CEST 2014
http://hg.python.org/cpython/rev/afa9c0e24a71
changeset: 91660:afa9c0e24a71
branch: 3.4
parent: 91657:23b439ac9e2d
user: Berker Peksag <berker.peksag at gmail.com>
date: Sat Jul 12 18:24:32 2014 +0300
summary:
Issue #19076: Don't pass the redundant 'file' argument to self.error().
files:
Lib/pdb.py | 2 +-
Misc/NEWS | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/pdb.py b/Lib/pdb.py
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -673,7 +673,7 @@
# now set the break point
err = self.set_break(filename, line, temporary, cond, funcname)
if err:
- self.error(err, file=self.stdout)
+ self.error(err)
else:
bp = self.get_breaks(filename, line)[-1]
self.message("Breakpoint %d at %s:%d" %
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,8 @@
Library
-------
+- Issue #19076: Don't pass the redundant 'file' argument to self.error().
+
- Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.
- Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list