[Python-checkins] cpython (merge 3.4 -> default): Issue #23811: Add missing newline to the PyCompileError error message.
berker.peksag
python-checkins at python.org
Tue Apr 14 17:58:02 CEST 2015
https://hg.python.org/cpython/rev/d39fe1e112a3
changeset: 95642:d39fe1e112a3
parent: 95640:ae1528beae67
parent: 95641:1e139b3c489e
user: Berker Peksag <berker.peksag at gmail.com>
date: Tue Apr 14 18:58:45 2015 +0300
summary:
Issue #23811: Add missing newline to the PyCompileError error message.
Patch by Alex Shkop.
files:
Lib/py_compile.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -179,7 +179,7 @@
except PyCompileError as error:
# return value to indicate at least one failure
rv = 1
- sys.stderr.write(error.msg)
+ sys.stderr.write("%s\n" % error.msg)
return rv
if __name__ == "__main__":
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -31,6 +31,9 @@
Library
-------
+- Issue #23811: Add missing newline to the PyCompileError error message.
+ Patch by Alex Shkop.
+
- Issue #21116: Avoid blowing memory when allocating a multiprocessing shared
array that's larger than 50% of the available RAM. Patch by Médéric Boquien.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list