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
........
This commit is contained in:
Benjamin Peterson 2010-03-18 22:55:53 +00:00
parent 4222e9c07c
commit 5c86d45a52
1 changed files with 0 additions and 2 deletions

View File

@ -112,8 +112,6 @@ def compile(file, cfile=None, dfile=None, doraise=False):
except AttributeError: except AttributeError:
timestamp = int(os.stat(file).st_mtime) timestamp = int(os.stat(file).st_mtime)
codestring = f.read() codestring = f.read()
if codestring and codestring[-1] != '\n':
codestring = codestring + '\n'
try: try:
codeobject = builtins.compile(codestring, dfile or file,'exec') codeobject = builtins.compile(codestring, dfile or file,'exec')
except Exception as err: except Exception as err: