summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-04-14 15:57:55 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-04-14 15:57:55 (GMT)
commit34c9be7ebdc135e38914d161b028f5b56bf00642 (patch)
treed44448c5854bc6112ba2a35dc6604e65d64414eb /Lib/py_compile.py
parentb3c30d91143be72a05a02b9eb5f7b2e670450288 (diff)
downloadcpython-34c9be7ebdc135e38914d161b028f5b56bf00642.zip
cpython-34c9be7ebdc135e38914d161b028f5b56bf00642.tar.gz
cpython-34c9be7ebdc135e38914d161b028f5b56bf00642.tar.bz2
Issue #23811: Add missing newline to the PyCompileError error message.
Patch by Alex Shkop.
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r--Lib/py_compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
index 1277b93..f65eeaf 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__":