From 1bc53c6e0bae375a58286654d2e75126b11217c6 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Tue, 14 Apr 2015 19:03:06 +0300 Subject: Issue #23811: Add missing newline to the PyCompileError error message. Patch by Alex Shkop. --- Lib/py_compile.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/py_compile.py b/Lib/py_compile.py index c0bc1e4..8334ed9 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 0736f2e..7577f00 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 -- cgit v0.12