changeset: 95644:22790c4f3b16 branch: 2.7 parent: 95636:31c8b57f1197 user: Berker Peksag date: Tue Apr 14 19:03:06 2015 +0300 files: Lib/py_compile.py Misc/NEWS description: Issue #23811: Add missing newline to the PyCompileError error message. Patch by Alex Shkop. diff -r 31c8b57f1197 -r 22790c4f3b16 Lib/py_compile.py --- a/Lib/py_compile.py Tue Apr 14 10:18:46 2015 -0400 +++ b/Lib/py_compile.py Tue Apr 14 19:03:06 2015 +0300 @@ -163,7 +163,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 -r 31c8b57f1197 -r 22790c4f3b16 Misc/NEWS --- a/Misc/NEWS Tue Apr 14 10:18:46 2015 -0400 +++ b/Misc/NEWS Tue Apr 14 19:03:06 2015 +0300 @@ -21,6 +21,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 #23865: close() methods in multiple modules now are idempotent and more