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

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 8:43 p.m.
Message ID <18005c8a143163d236eead79ffc2ede7@localhost.localdomain>
Download mbox | patch
Permalink /patch/27142/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 8:43 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG177eb3847a0a: mq: open status file et al in bytes mode (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
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()