]> granicus.if.org Git - python/commitdiff
Patch #1171150: add a newline to py_compile error output
authorGeorg Brandl <georg@python.org>
Fri, 10 Jun 2005 17:15:18 +0000 (17:15 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 10 Jun 2005 17:15:18 +0000 (17:15 +0000)
Lib/py_compile.py

index 02b01363ac64c424cc7b660170a6c6ddcdbf66c7..1cb41f1e0e59f9ae8fd3baae08e23d4d9f5ef600 100644 (file)
@@ -128,7 +128,7 @@ def compile(file, cfile=None, dfile=None, doraise=False):
         if doraise:
             raise py_exc
         else:
-            sys.stderr.write(py_exc.msg)
+            sys.stderr.write(py_exc.msg + '\n')
             return
     if cfile is None:
         cfile = file + (__debug__ and 'c' or 'o')