changeset 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 f2b334e6c7e0
children 6ceb3c4c3ab6
files mercurial/changelog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)