From 5c86d45a5211c4c4f4999d142ce8bcc63ac2aeaa Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 18 Mar 2010 22:55:53 +0000 Subject: [PATCH] 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 ........ --- Lib/py_compile.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 859136550d..9f34a0b38e 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: -- 2.50.1