D7184: py3: avoid another b''.format() in chistedit
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Nov 1 12:35:05 EDT 2019
martinvonz updated this revision to Diff 17439.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7184?vs=17431&id=17439
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7184/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7184
AFFECTED FILES
hgext/histedit.py
CHANGE DETAILS
diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -1317,7 +1317,7 @@
our list of rules"""
commands = []
for rules in rules:
- commands.append(b"{0} {1}\n".format(rules.action, rules.ctx))
+ commands.append(b'%s %s\n' % (rules.action, rules.ctx))
return commands
To: martinvonz, durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list