py3: avoid another b''.format() in chistedit stable
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 31 Oct 2019 15:02:48 -0700
branchstable
changeset 43371 85ab79bc7dab
parent 43370 7f56b0cbd245
child 43372 66a0c5faed1e
py3: avoid another b''.format() in chistedit Now you'll get a different traceback if you try to confirm you histedit plan. Differential Revision: https://phab.mercurial-scm.org/D7184
hgext/histedit.py
--- a/hgext/histedit.py	Thu Oct 31 15:02:03 2019 -0700
+++ b/hgext/histedit.py	Thu Oct 31 15:02:48 2019 -0700
@@ -1322,7 +1322,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