diff mercurial/linelog.py @ 44164: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 640bae94f2f3
children 6000f5b25c9b
line wrap: on
line diff
--- a/mercurial/linelog.py	Tue Feb 04 12:07:37 2020 +0100
+++ b/mercurial/linelog.py	Thu Jan 02 11:04:18 2020 -0800
@@ -255,7 +255,7 @@
         )
 
     def __repr__(self):
-        return b'<linelog at %s: maxrev=%d size=%d>' % (
+        return '<linelog at %s: maxrev=%d size=%d>' % (
             hex(id(self)),
             self._maxrev,
             len(self._program),