[Python-checkins] r71752 - in python/branches/py3k: Lib/compileall.py

mark.dickinson python-checkins at python.org
Sun Apr 19 19:14:11 CEST 2009


Author: mark.dickinson
Date: Sun Apr 19 19:14:11 2009
New Revision: 71752

Log:
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.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/compileall.py

Modified: python/branches/py3k/Lib/compileall.py
==============================================================================
--- python/branches/py3k/Lib/compileall.py	(original)
+++ python/branches/py3k/Lib/compileall.py	Sun Apr 19 19:14:11 2009
@@ -57,7 +57,7 @@
             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:


More information about the Python-checkins mailing list