From 9b67621b66d459bca4e4b21c0174640764c8d5c6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 24 Oct 1996 13:42:30 +0000 Subject: [PATCH] Cast mtime gotten from stat() to long int -- else it won't work on the Mac. Jack! Please fix this in the Mac distributions! --- Lib/py_compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 2e68ba82c5b..fba7b1d51dd 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'