Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 36667:bcfc4e3b6548
py3: use bytes() instead of str()
Differential Revision: https://phab.mercurial-scm.org/D2617
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 02 Mar 2018 07:16:33 +0530 |
parents | 9e2866065982 |
children | e77cee5de1c7 |
line wrap: on
line diff
--- a/hgext/mq.py Fri Mar 02 07:15:54 2018 +0530 +++ b/hgext/mq.py Fri Mar 02 07:16:33 2018 +0530 @@ -780,7 +780,7 @@ diffopts = self.patchopts(diffopts, patch) patchf = self.opener(patch, "w") - comments = str(ph) + comments = bytes(ph) if comments: patchf.write(comments) self.printdiff(repo, diffopts, head, n, fp=patchf)