summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-07-12 15:26:03 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-07-12 15:26:03 (GMT)
commitde1fb6660b212fc32e38119221a667188b907d67 (patch)
tree09a5ddf0a7db758e5ec96be73b82e634d2eebfbd
parent5c6e6fc57e651711d92f470e68621cc8230e064c (diff)
parentad5ffd4767802dfc34e3ae2d7960f1610d58cdcc (diff)
downloadcpython-de1fb6660b212fc32e38119221a667188b907d67.zip
cpython-de1fb6660b212fc32e38119221a667188b907d67.tar.gz
cpython-de1fb6660b212fc32e38119221a667188b907d67.tar.bz2
Issue #19076: Merge with 3.4.
-rwxr-xr-xLib/pdb.py2
-rw-r--r--Misc/NEWS2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index dd7ceb8..42e605e 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -673,7 +673,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
# 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
index 6d790ad..ed3a4dc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -108,6 +108,8 @@ Core and Builtins
Library
-------
+- Issue #19076: Don't pass the redundant 'file' argument to self.error().
+
- Issue #16382: Improve exception message of warnings.warn() for bad
category. Initial patch by Phil Elson.