diff mercurial/changelog.py @ 31642:addc392cc3d3

py3: use bytes() to cast to immutable bytes in changelog.appender.write()
author Yuya Nishihara <yuya@tcha.org>
date Sun, 26 Mar 2017 16:31:01 +0900
parents afb335353d28
children 6f173560c7f4
line wrap: on
line diff
--- 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)