# HG changeset patch # User Gregory Szorc # Date 1548549925 28800 # Node ID 5c73441a47e535a7a0b192f9b087476b94558b84 # Parent 1d99c9a5ccb00e8c4b7edb7d3549f6df73e2ff68 crecord: always return a str from uihunk.__repr__ Otherwise Python 3 complains about it returning bytes. Differential Revision: https://phab.mercurial-scm.org/D5728 diff -r 1d99c9a5ccb0 -r 5c73441a47e5 mercurial/crecord.py --- a/mercurial/crecord.py Sat Jan 26 15:52:37 2019 -0800 +++ b/mercurial/crecord.py Sat Jan 26 16:45:25 2019 -0800 @@ -487,7 +487,7 @@ return getattr(self._hunk, name) def __repr__(self): - return '' % (self.filename(), self.fromline) + return r'' % (self.filename(), self.fromline) def filterpatch(ui, chunks, chunkselector, operation=None): """interactively filter patch chunks into applied-only chunks"""