[Python-checkins] cpython (3.4): 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/1e139b3c489e
changeset:   95641:1e139b3c489e
branch:      3.4
parent:      95638:6cdfab400707
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Tue Apr 14 18:57:55 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
@@ -178,7 +178,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
@@ -29,6 +29,9 @@
 Library
 -------
 
+- Issue #23811: Add missing newline to the PyCompileError error message.
+  Patch by Alex Shkop.
+
 - Issue #17898: Fix exception in gettext.py when parsing certain plural forms.
 
 - Issue #22982: Improve BOM handling when seeking to multiple positions of

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list