--- 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()