py3: handle keyword arguments in hgext/children.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 22 Oct 2017 23:53:10 +0530
changeset 34973 11a372d80496
parent 34972 375577785f49
child 34974 26ed66ab1e72
py3: handle keyword arguments in hgext/children.py Differential Revision: https://phab.mercurial-scm.org/D1298
hgext/children.py
--- a/hgext/children.py	Sun Oct 22 23:52:47 2017 +0530
+++ b/hgext/children.py	Sun Oct 22 23:53:10 2017 +0530
@@ -19,6 +19,7 @@
 from mercurial.i18n import _
 from mercurial import (
     cmdutil,
+    pycompat,
     registrar,
 )
 
@@ -55,6 +56,7 @@
     See :hg:`help log` and :hg:`help revsets.children`.
 
     """
+    opts = pycompat.byteskwargs(opts)
     rev = opts.get('rev')
     if file_:
         fctx = repo.filectx(file_, changeid=rev)