these lines can now be dispensed with
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
index 43af3c0..24b5837 100644
--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -109,8 +109,6 @@
         except AttributeError:
             timestamp = long(os.stat(file).st_mtime)
         codestring = f.read()
-    if codestring and codestring[-1] != '\n':
-        codestring = codestring + '\n'
     try:
         codeobject = __builtin__.compile(codestring, dfile or file,'exec')
     except Exception,err: