mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
these lines can now be dispensed with
This commit is contained in:
parent
001a3952c9
commit
e30b3fa17a
1 changed files with 0 additions and 2 deletions
|
@ -109,8 +109,6 @@ def compile(file, cfile=None, dfile=None, doraise=False):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
timestamp = long(os.stat(file).st_mtime)
|
timestamp = long(os.stat(file).st_mtime)
|
||||||
codestring = f.read()
|
codestring = f.read()
|
||||||
if codestring and codestring[-1] != '\n':
|
|
||||||
codestring = codestring + '\n'
|
|
||||||
try:
|
try:
|
||||||
codeobject = __builtin__.compile(codestring, dfile or file,'exec')
|
codeobject = __builtin__.compile(codestring, dfile or file,'exec')
|
||||||
except Exception,err:
|
except Exception,err:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue