Patchwork D1902: mq: open status file et al in bytes mode

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2018, 4:13 p.m.
Message ID <110f1f93981f04623a8ee5af537bfa95@localhost.localdomain>
Download mbox | patch
Permalink /patch/26912/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2018, 4:13 p.m.
durin42 updated this revision to Diff 4909.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1902?vs=4892&id=4909

REVISION DETAIL
  https://phab.mercurial-scm.org/D1902

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -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()