From: Benjamin Peterson Date: Thu, 18 Mar 2010 22:44:54 +0000 (+0000) Subject: these lines can now be dispensed with X-Git-Tag: v2.7b1~321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e30b3fa17a7f89fac3ef5e2b6546dad95204032e;p=python these lines can now be dispensed with --- diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 43af3c0ac7..24b58374c0 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -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: