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:
parent
4222e9c07c
commit
5c86d45a52
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue