summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/py_compi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dos-8x3/py_compi.py')
-rwxr-xr-xLib/dos-8x3/py_compi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dos-8x3/py_compi.py b/Lib/dos-8x3/py_compi.py
index a6d03d7..e1d0d70 100755
--- a/Lib/dos-8x3/py_compi.py
+++ b/Lib/dos-8x3/py_compi.py
@@ -44,7 +44,7 @@ def compile(file, cfile=None, dfile=None):
import os, marshal, __builtin__
f = open(file)
try:
- timestamp = os.fstat(file.fileno())
+ timestamp = long(os.fstat(f.fileno())[8])
except AttributeError:
timestamp = long(os.stat(file)[8])
codestring = f.read()