Kaydet (Commit) 9be2697f authored tarafından Mark Dickinson's avatar Mark Dickinson

Automatic conversion of floats to integers for struct.pack integer codes

is deprecated.  Use an explicit int() instead.
üst 6c0b872f
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment