mercurial/patch.py
branchstable
changeset 44247 c443b9ba6f63
parent 44060 a61287a95dc3
child 44452 9d2b2df2c2ba
--- a/mercurial/patch.py	Tue Feb 04 12:07:37 2020 +0100
+++ b/mercurial/patch.py	Thu Jan 02 11:04:18 2020 -0800
@@ -1090,6 +1090,7 @@
     def filename(self):
         return self.header.filename()
 
+    @encoding.strmethod
     def __repr__(self):
         return b'<hunk %r@%d>' % (self.filename(), self.fromline)