Commits

Anthony Tuininga committed 942b56b

Add support for Python 3.1 while retaining support for the older versions.

Comments (0)

Files changed (1)

             else:
                 mtime = time.time()
             zipTime = time.localtime(mtime)[:6]
-            data = imp.get_magic() + struct.pack("<i", mtime) + \
+            data = imp.get_magic() + struct.pack("<i", int(mtime)) + \
                     marshal.dumps(module.code)
             zinfo = zipfile.ZipInfo(fileName + ".pyc", zipTime)
             if compress: