comparison mercurial/patch.py @ 44247:c443b9ba6f63 stable

py3: __repr__ needs to return str, not bytes Differential Revision: https://phab.mercurial-scm.org/D8089
author Kyle Lippincott <spectral@google.com>
date Thu, 02 Jan 2020 11:04:18 -0800
parents a61287a95dc3
children 9d2b2df2c2ba
comparison
equal deleted inserted replaced
44246:eecc005229ff 44247:c443b9ba6f63
1088 pretty = write 1088 pretty = write
1089 1089
1090 def filename(self): 1090 def filename(self):
1091 return self.header.filename() 1091 return self.header.filename()
1092 1092
1093 @encoding.strmethod
1093 def __repr__(self): 1094 def __repr__(self):
1094 return b'<hunk %r@%d>' % (self.filename(), self.fromline) 1095 return b'<hunk %r@%d>' % (self.filename(), self.fromline)
1095 1096
1096 1097
1097 def getmessages(): 1098 def getmessages():