changeset: 95641:1e139b3c489e branch: 3.4 parent: 95638:6cdfab400707 user: Berker Peksag date: Tue Apr 14 18:57:55 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 6cdfab400707 -r 1e139b3c489e 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 18:57:55 2015 +0300 @@ -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 -r 6cdfab400707 -r 1e139b3c489e Misc/NEWS --- a/Misc/NEWS Tue Apr 14 10:18:46 2015 -0400 +++ b/Misc/NEWS Tue Apr 14 18:57:55 2015 +0300 @@ -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