mq: open status file et al in bytes mode
authorAugie Fackler <augie@google.com>
Wed, 17 Jan 2018 22:05:02 -0500
changeset 35843 512113eb9d26
parent 35842 9bce28609a95
child 35844 522f868680ca
mq: open status file et al in bytes mode Differential Revision: https://phab.mercurial-scm.org/D1902
hgext/mq.py
--- a/hgext/mq.py	Wed Jan 17 22:04:34 2018 -0500
+++ b/hgext/mq.py	Wed Jan 17 22:05:02 2018 -0500
@@ -695,7 +695,7 @@
 
     def savedirty(self):
         def writelist(items, path):
-            fp = self.opener(path, 'w')
+            fp = self.opener(path, 'wb')
             for i in items:
                 fp.write("%s\n" % i)
             fp.close()