mercurial/context.py
changeset 40258 2f47703c5489
parent 40085 aa41f1b01f31
child 40302 af2306bf7d5d
--- a/mercurial/context.py	Sat Oct 13 09:45:49 2018 -0400
+++ b/mercurial/context.py	Sat Oct 13 08:54:31 2018 -0400
@@ -2433,5 +2433,5 @@
 
     def write(self, data, flags, **kwargs):
         assert not flags
-        with open(self._path, "w") as f:
+        with open(self._path, "wb") as f:
             f.write(data)