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:
Guido van Rossum 1996-10-24 13:42:30 +00:00
parent 8542c8e1af
commit 9b67621b66
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def compile(file, cfile = None):
f = open(file)
codestring = f.read()
f.close()
timestamp = os.stat(file)[8]
timestamp = long(os.stat(file)[8])
codeobject = __builtin__.compile(codestring, file, 'exec')
if not cfile:
cfile = file + 'c'