From: Berker Peksag Date: Tue, 14 Apr 2015 16:03:06 +0000 (+0300) Subject: Issue #23811: Add missing newline to the PyCompileError error message. X-Git-Tag: v2.7.10rc1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bc53c6e0bae375a58286654d2e75126b11217c6;p=thirdparty%2FPython%2Fcpython.git Issue #23811: Add missing newline to the PyCompileError error message. Patch by Alex Shkop. --- diff --git a/Lib/py_compile.py b/Lib/py_compile.py index c0bc1e4eb825..8334ed9643bf 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -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__": diff --git a/Misc/NEWS b/Misc/NEWS index 0736f2e555ab..7577f00e1624 100644 --- 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