[Python-checkins] r79070 - python/trunk/Lib/py_compile.py
benjamin.peterson
python-checkins at python.org
Thu Mar 18 23:44:54 CET 2010
Author: benjamin.peterson
Date: Thu Mar 18 23:44:54 2010
New Revision: 79070
Log:
these lines can now be dispensed with
Modified:
python/trunk/Lib/py_compile.py
Modified: python/trunk/Lib/py_compile.py
==============================================================================
--- python/trunk/Lib/py_compile.py (original)
+++ python/trunk/Lib/py_compile.py Thu Mar 18 23:44:54 2010
@@ -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:
More information about the Python-checkins
mailing list