changeset 35028:11a372d80496

py3: handle keyword arguments in hgext/children.py Differential Revision: https://phab.mercurial-scm.org/D1298
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 22 Oct 2017 23:53:10 +0530
parents 375577785f49
children 26ed66ab1e72
files hgext/children.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)