mercurial/changelog.py
changeset 5450 c728424d44c6
parent 4945 d1bee415406e
--- a/mercurial/changelog.py
+++ b/mercurial/changelog.py
@@ -74,7 +74,7 @@ class appender:
         return ret
 
     def write(self, s):
-        self.data.append(s)
+        self.data.append(str(s))
         self.offset += len(s)
 
 class changelog(revlog):