changeset 36387:dbf34d0ef9f6

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 24 Feb 2018 01:19:26 +0530
parents 003ae586a02e
children 6f6063553502
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Fri Feb 23 20:50:10 2018 -0500
+++ b/hgext/mq.py	Sat Feb 24 01:19:26 2018 +0530
@@ -1194,6 +1194,7 @@
         """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 @@
         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