]> granicus.if.org Git - python/commitdiff
Cast mtime gotten from stat() to long int -- else it won't work
authorGuido van Rossum <guido@python.org>
Thu, 24 Oct 1996 13:42:30 +0000 (13:42 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 Oct 1996 13:42:30 +0000 (13:42 +0000)
on the Mac.

Jack!  Please fix this in the Mac distributions!

Lib/py_compile.py

index 2e68ba82c5b81770eb205b09bbefeb6db82ef183..fba7b1d51dd5debf0a4a7f2404c32c401f4ce405 100644 (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'