Patchwork D7184: py3: avoid another b''.format() in chistedit

login
register
mail settings
Submitter phabricator
Date Nov. 1, 2019, 4:35 p.m.
Message ID <f5d4f53522465b1c9b5aafbf43fcb112@localhost.localdomain>
Download mbox | patch
Permalink /patch/42650/
State Not Applicable
Headers show

Comments

phabricator - Nov. 1, 2019, 4:35 p.m.
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




To: martinvonz, durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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