diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-18 22:55:53 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-18 22:55:53 (GMT) |
commit | 5c86d45a5211c4c4f4999d142ce8bcc63ac2aeaa (patch) | |
tree | b60cca6d267ff844cf7fd0a2280949c9795e8e8a /Lib/py_compile.py | |
parent | 4222e9c07cc9a223ac756f8cc1c1cd2f9212765e (diff) | |
download | cpython-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.py | 2 |
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: |