# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-03-01 18:21:32 # Node ID 1c4247b0040ae41cd513a12178b96e65d313cd37 # Parent 4b9e9e3f450c7c8a8717e0a2ed9573a067903ce6 py3: use '%d' instead of '%s' for ints Differential Revision: https://phab.mercurial-scm.org/D2514 diff --git a/hgext/hgk.py b/hgext/hgk.py --- a/hgext/hgk.py +++ b/hgext/hgk.py @@ -146,7 +146,7 @@ def catcommit(ui, repo, n, prefix, ctx=N date = ctx.date() description = ctx.description().replace("\0", "") - ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1]))) + ui.write(("author %s %d %d\n" % (ctx.user(), int(date[0]), date[1]))) if 'committer' in ctx.extra(): ui.write(("committer %s\n" % ctx.extra()['committer']))