diff mercurial/mdiff.py @ 34506:1d804c22c671

py3: use '%d' for integers instead of '%s' Differential Revision: https://phab.mercurial-scm.org/D973
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 02 Oct 2017 04:48:06 +0530
parents da07367d683b
children 6ba79cf34f5e
line wrap: on
line diff
--- a/mercurial/mdiff.py	Mon Oct 02 04:46:17 2017 +0530
+++ b/mercurial/mdiff.py	Mon Oct 02 04:48:06 2017 +0530
@@ -457,7 +457,7 @@
     # TODO: deltas
     ret = []
     ret.append('GIT binary patch\n')
-    ret.append('literal %s\n' % len(tn))
+    ret.append('literal %d\n' % len(tn))
     for l in chunk(zlib.compress(tn)):
         ret.append(fmtline(l))
     ret.append('\n')