mirror of https://github.com/python/cpython.git
Cast mtime gotten from stat() to long int -- else it won't work
on the Mac. Jack! Please fix this in the Mac distributions!
This commit is contained in:
parent
8542c8e1af
commit
9b67621b66
|
@ -16,7 +16,7 @@ def compile(file, cfile = None):
|
||||||
f = open(file)
|
f = open(file)
|
||||||
codestring = f.read()
|
codestring = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
timestamp = os.stat(file)[8]
|
timestamp = long(os.stat(file)[8])
|
||||||
codeobject = __builtin__.compile(codestring, file, 'exec')
|
codeobject = __builtin__.compile(codestring, file, 'exec')
|
||||||
if not cfile:
|
if not cfile:
|
||||||
cfile = file + 'c'
|
cfile = file + 'c'
|
||||||
|
|
Loading…
Reference in New Issue