# HG changeset patch # User Mads Kiilerich # Date 1357243624 -3600 # Node ID 49ad7030ecc4fb57a5e56530fa308ead8680ffcd # Parent 745bc16ccef2c9a52842ccf43fc68bb648740424 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 diff -r 745bc16ccef2 -r 49ad7030ecc4 mercurial/archival.py --- 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):