summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-24 13:42:30 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-24 13:42:30 (GMT)
commit9b67621b66d459bca4e4b21c0174640764c8d5c6 (patch)
tree3ad93dd31cf873a47d0c582bcecbce8663aeeb4e /Lib
parent8542c8e1afd1f2a04dda3ab4519cc4dd99dde238 (diff)
downloadcpython-9b67621b66d459bca4e4b21c0174640764c8d5c6.zip
cpython-9b67621b66d459bca4e4b21c0174640764c8d5c6.tar.gz
cpython-9b67621b66d459bca4e4b21c0174640764c8d5c6.tar.bz2
Cast mtime gotten from stat() to long int -- else it won't work
on the Mac. Jack! Please fix this in the Mac distributions!
Diffstat (limited to 'Lib')
-rw-r--r--Lib/py_compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
index 2e68ba8..fba7b1d 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'