Mercurial > hg
changeset 41904:634b56b54e7c
py3: use %d instead of %s when formatting an int into a byte string
Differential Revision: https://phab.mercurial-scm.org/D6110
author | Ian Moody <moz-ian@perix.co.uk> |
---|---|
date | Sat, 09 Mar 2019 01:58:51 +0000 |
parents | 8fd19a7b4ed6 |
children | 16d050678047 |
files | hgext/phabricator.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/phabricator.py Sat Mar 09 01:53:53 2019 +0000 +++ b/hgext/phabricator.py Sat Mar 09 01:58:51 2019 +0000 @@ -430,7 +430,7 @@ # existing revision (revid is not None) since that introduces visible # churns (someone edited "Summary" twice) on the web page. if parentrevid and revid is None: - summary = b'Depends on D%s' % parentrevid + summary = b'Depends on D%d' % parentrevid transactions += [{b'type': b'summary', b'value': summary}, {b'type': b'summary', b'value': b' '}] @@ -570,7 +570,7 @@ b'skipped': _(b'skipped'), b'updated': _(b'updated')}[action], b'phabricator.action.%s' % action) - drevdesc = ui.label(b'D%s' % newrevid, b'phabricator.drev') + drevdesc = ui.label(b'D%d' % newrevid, b'phabricator.drev') nodedesc = ui.label(bytes(ctx), b'phabricator.node') desc = ui.label(ctx.description().split(b'\n')[0], b'phabricator.desc') ui.write(_(b'%s - %s - %s: %s\n') % (drevdesc, actiondesc, nodedesc,