diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2009-04-19 17:10:47 (GMT) |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2009-04-19 17:10:47 (GMT) |
| commit | 9be2697fb65ef7bd5cd8da8961260492438e26d2 (patch) | |
| tree | b3e23438291f8aef54998fe6f9e26cee4d1ad1c7 | |
| parent | 6c0b872f85e0e4f0cdd873a4240d46e56396f628 (diff) | |
| download | cpython-9be2697fb65ef7bd5cd8da8961260492438e26d2.zip cpython-9be2697fb65ef7bd5cd8da8961260492438e26d2.tar.gz cpython-9be2697fb65ef7bd5cd8da8961260492438e26d2.tar.bz2 | |
Automatic conversion of floats to integers for struct.pack integer codes
is deprecated. Use an explicit int() instead.
| -rw-r--r-- | Lib/compileall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py index f99b834..49537fd 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: |
