[Python-checkins] r79074 - in python/branches/py3k: Lib/py_compile.py

benjamin.peterson python-checkins at python.org
Thu Mar 18 23:55:53 CET 2010


Author: benjamin.peterson
Date: Thu Mar 18 23:55:53 2010
New Revision: 79074

Log:
Merged revisions 79070 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79070 | benjamin.peterson | 2010-03-18 17:44:54 -0500 (Thu, 18 Mar 2010) | 1 line
  
  these lines can now be dispensed with
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/py_compile.py

Modified: python/branches/py3k/Lib/py_compile.py
==============================================================================
--- python/branches/py3k/Lib/py_compile.py	(original)
+++ python/branches/py3k/Lib/py_compile.py	Thu Mar 18 23:55:53 2010
@@ -112,8 +112,6 @@
         except AttributeError:
             timestamp = int(os.stat(file).st_mtime)
         codestring = f.read()
-    if codestring and codestring[-1] != '\n':
-        codestring = codestring + '\n'
     try:
         codeobject = builtins.compile(codestring, dfile or file,'exec')
     except Exception as err:


More information about the Python-checkins mailing list