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

login
register
mail settings
Submitter phabricator
Date Nov. 1, 2019, 4:17 a.m.
Message ID <5147fe95ab3152f08102a12dce2d5265@localhost.localdomain>
Download mbox | patch
Permalink /patch/42634/
State Not Applicable
Headers show

Comments

phabricator - Nov. 1, 2019, 4:17 a.m.
martinvonz updated this revision to Diff 17431.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7184?vs=17423&id=17431

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