summaryrefslogtreecommitdiffstats
path: root/Lib/compileall.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-04-19 17:14:11 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-04-19 17:14:11 (GMT)
commit769ba47bb281d1d261f2fa975a93cf1b7292ba24 (patch)
tree9118285732f53a9f3a323f4787a8ac33ad163af0 /Lib/compileall.py
parenta4262b93ebb4d6a0419d10832c56b689c7a2e208 (diff)
downloadcpython-769ba47bb281d1d261f2fa975a93cf1b7292ba24.zip
cpython-769ba47bb281d1d261f2fa975a93cf1b7292ba24.tar.gz
cpython-769ba47bb281d1d261f2fa975a93cf1b7292ba24.tar.bz2
Merged revisions 71750 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71750 | mark.dickinson | 2009-04-19 18:10:47 +0100 (Sun, 19 Apr 2009) | 3 lines Automatic conversion of floats to integers for struct.pack integer codes is deprecated. Use an explicit int() instead. ........
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r--Lib/compileall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py
index 8c678e4..9451a60 100644
--- a/Lib/compileall.py
+++ b/Lib/compileall.py
@@ -57,7 +57,7 @@ def compile_dir(dir, maxlevels=10, ddir=None,
if tail == '.py':
if not force:
try:
- mtime = os.stat(fullname).st_mtime
+ mtime = int(os.stat(fullname).st_mtime)
expect = struct.pack('<4sl', imp.get_magic(), mtime)
cfile = fullname + (__debug__ and 'c' or 'o')
with open(cfile, 'rb') as chandle: