]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23811: Add missing newline to the PyCompileError error message.
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Apr 2015 16:03:06 +0000 (19:03 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Apr 2015 16:03:06 +0000 (19:03 +0300)
Patch by Alex Shkop.

Lib/py_compile.py
Misc/NEWS

index c0bc1e4eb825c89867ce8ae729faa1d5b5cf6e35..8334ed9643bf73d2512260624f82cb9a794bc990 100644 (file)
@@ -163,7 +163,7 @@ def main(args=None):
             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__":
index 0736f2e555ab03d3c0c7c865e544bb1397e10fb2..7577f00e162408ec58a6e10903ddf03129031350 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,9 @@ Core and Builtins
 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 #23865: close() methods in multiple modules now are idempotent and more