# HG changeset patch # User Augie Fackler # Date 2018-01-18 03:05:37 # Node ID 522f868680ca213a06e2255cb71c5c78dc1046c2 # Parent 512113eb9d264674b593ad037496b5009a49c3d3 mq: use bytes() instead of str() to encode statusentries for writing Differential Revision: https://phab.mercurial-scm.org/D1903 diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -700,7 +700,7 @@ class queue(object): fp.write("%s\n" % i) fp.close() if self.applieddirty: - writelist(map(str, self.applied), self.statuspath) + writelist(map(bytes, self.applied), self.statuspath) self.applieddirty = False if self.seriesdirty: writelist(self.fullseries, self.seriespath)