py3: use bytes() to cast to immutable bytes in changelog.appender.write()
authorYuya Nishihara <yuya@tcha.org>
Sun, 26 Mar 2017 16:31:01 +0900
changeset 31642 addc392cc3d3
parent 31641 f2b334e6c7e0
child 31643 6ceb3c4c3ab6
py3: use bytes() to cast to immutable bytes in changelog.appender.write()
mercurial/changelog.py
--- a/mercurial/changelog.py	Sun Mar 26 16:16:45 2017 +0900
+++ b/mercurial/changelog.py	Sun Mar 26 16:31:01 2017 +0900
@@ -120,7 +120,7 @@
         return ret
 
     def write(self, s):
-        self.data.append(str(s))
+        self.data.append(bytes(s))
         self.offset += len(s)
         self._end += len(s)