D1902: mq: open status file et al in bytes mode
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Jan 18 11:13:27 EST 2018
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
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()
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list