summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-03-18 22:55:53 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-03-18 22:55:53 (GMT)
commit5c86d45a5211c4c4f4999d142ce8bcc63ac2aeaa (patch)
treeb60cca6d267ff844cf7fd0a2280949c9795e8e8a /Lib/py_compile.py
parent4222e9c07cc9a223ac756f8cc1c1cd2f9212765e (diff)
downloadcpython-5c86d45a5211c4c4f4999d142ce8bcc63ac2aeaa.zip
cpython-5c86d45a5211c4c4f4999d142ce8bcc63ac2aeaa.tar.gz
cpython-5c86d45a5211c4c4f4999d142ce8bcc63ac2aeaa.tar.bz2
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 ........
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r--Lib/py_compile.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
index 8591365..9f34a0b 100644
--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -112,8 +112,6 @@ def compile(file, cfile=None, dfile=None, doraise=False):
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: