From: Berker Peksag Date: Tue, 14 Apr 2015 15:57:55 +0000 (+0300) Subject: Issue #23811: Add missing newline to the PyCompileError error message. X-Git-Tag: v3.5.0a4~59^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34c9be7ebdc135e38914d161b028f5b56bf00642;p=python 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 1277b93ea5..f65eeaf620 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -178,7 +178,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 4949d664f5..7370cb1609 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -29,6 +29,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 #22982: Improve BOM handling when seeking to multiple positions of