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 166c488..10c1ef5 100644
--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -179,7 +179,7 @@
             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 9f60a3e..5e4706b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -31,6 +31,9 @@
 Library
 -------
 
+- Issue #23811: Add missing newline to the PyCompileError error message.
+  Patch by Alex Shkop.
+
 - Issue #21116: Avoid blowing memory when allocating a multiprocessing shared
   array that's larger than 50% of the available RAM.  Patch by Médéric Boquien.