]> granicus.if.org Git - python/commitdiff
these lines can now be dispensed with
authorBenjamin Peterson <benjamin@python.org>
Thu, 18 Mar 2010 22:44:54 +0000 (22:44 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 18 Mar 2010 22:44:54 +0000 (22:44 +0000)
Lib/py_compile.py

index 43af3c0ac7a78bb579095a43f4fc509d0eca3a7e..24b58374c0cfe35f21e7f9cc6165462aa80b6465 100644 (file)
@@ -109,8 +109,6 @@ def compile(file, cfile=None, dfile=None, doraise=False):
         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: