changeset 41417:5c73441a47e5

crecord: always return a str from uihunk.__repr__ Otherwise Python 3 complains about it returning bytes. Differential Revision: https://phab.mercurial-scm.org/D5728
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 26 Jan 2019 16:45:25 -0800
parents 1d99c9a5ccb0
children 26761665bdfe
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 '<hunk %r@%d>' % (self.filename(), self.fromline)
+        return r'<hunk %r@%d>' % (self.filename(), self.fromline)
 
 def filterpatch(ui, chunks, chunkselector, operation=None):
     """interactively filter patch chunks into applied-only chunks"""