changeset 35843:512113eb9d26

mq: open status file et al in bytes mode Differential Revision: https://phab.mercurial-scm.org/D1902
author Augie Fackler <augie@google.com>
date Wed, 17 Jan 2018 22:05:02 -0500
parents 9bce28609a95
children 522f868680ca
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()