# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-23 19:49:26 # Node ID dbf34d0ef9f63474816e184a3f06d8c85d2d2697 # Parent 003ae586a02e99da4dbad6d2a67b802781937020 py3: use pycompat.byteskwargs() to fix keyword arguments handling I missed these when I fixed keyword arguments handling in the whole file. Differential Revision: https://phab.mercurial-scm.org/D2410 diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1194,6 +1194,7 @@ class queue(object): """options: msg: a string or a no-argument function returning a string """ + opts = pycompat.byteskwargs(opts) msg = opts.get('msg') edit = opts.get('edit') editform = opts.get('editform', 'mq.qnew') @@ -1633,6 +1634,7 @@ class queue(object): self.printdiff(repo, diffopts, node1, node2, files=pats, opts=opts) def refresh(self, repo, pats=None, **opts): + opts = pycompat.byteskwargs(opts) if not self.applied: self.ui.write(_("no patches applied\n")) return 1