From: Guido van Rossum Date: Thu, 24 Oct 1996 13:42:30 +0000 (+0000) Subject: Cast mtime gotten from stat() to long int -- else it won't work X-Git-Tag: v1.4~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b67621b66d459bca4e4b21c0174640764c8d5c6;p=python Cast mtime gotten from stat() to long int -- else it won't work on the Mac. Jack! Please fix this in the Mac distributions! --- diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 2e68ba82c5..fba7b1d51d 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -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'