py3: use '%d' for integers instead of '%s'
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 26 Feb 2018 16:23:12 +0530
changeset 36476 3d58037c6ec0
parent 36475 e8d37838f5df
child 36477 588048a6a8d3
py3: use '%d' for integers instead of '%s' Differential Revision: https://phab.mercurial-scm.org/D2455
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Sun Feb 25 13:24:35 2018 +0900
+++ b/hgext/patchbomb.py	Mon Feb 26 16:23:12 2018 +0530
@@ -668,7 +668,7 @@
         start_time = util.makedate()
 
     def genmsgid(id):
-        return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
+        return '<%s.%d@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
 
     # deprecated config: patchbomb.from
     sender = (opts.get('from') or ui.config('email', 'from') or