diff mercurial/archival.py @ 18301:49ad7030ecc4

archival: pass integer to struct.pack int field instead of float If running in a context with warnings enabled and subsecond mtime it gave a warning: DeprecationWarning: integer argument expected, got float
author Mads Kiilerich <madski@unity3d.com>
date Thu, 03 Jan 2013 21:07:04 +0100
parents 331d611813ec
children 16c642a6f07d
line wrap: on
line diff
--- a/mercurial/archival.py	Fri Jan 11 16:30:29 2013 +0100
+++ b/mercurial/archival.py	Thu Jan 03 21:07:04 2013 +0100
@@ -191,7 +191,7 @@
                                0x5455,     # block type: "extended-timestamp"
                                1 + 4,      # size of this block
                                1,          # "modification time is present"
-                               self.mtime) # time of last modification (UTC)
+                               int(self.mtime)) # last modification (UTC)
         self.z.writestr(i, data)
 
     def done(self):