Patchwork D7682: patch: make __repr__() return str

login
register
mail settings
Submitter phabricator
Date Dec. 17, 2019, 8:52 a.m.
Message ID <23839c5f3489cfe67b1ac6502febb25a@localhost.localdomain>
Download mbox | patch
Permalink /patch/43913/
State Not Applicable
Headers show

Comments

phabricator - Dec. 17, 2019, 8:52 a.m.
Closed by commit rHG727cf6acadfe: patch: make __repr__() return str (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7682?vs=18786&id=18802

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7682/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7682

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit, dlax
Cc: dlax, mercurial-devel

Patch

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -963,7 +963,7 @@ 
         return self.files()[-1]
 
     def __repr__(self):
-        return b'<header %s>' % (b' '.join(map(repr, self.files())))
+        return '<header %s>' % (' '.join(map(repr, self.files())))
 
     def isnewfile(self):
         return any(self.newfile_re.match(h) for h in self.header)