py3: handle keyword arguments in hgext/fetch.py
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 23 Oct 2017 00:02:28 +0530
changeset 34977 a56bf5591918
parent 34976 a8bc191fee5a
child 34978 de1f045781e0
py3: handle keyword arguments in hgext/fetch.py Differential Revision: https://phab.mercurial-scm.org/D1302
hgext/fetch.py
--- a/hgext/fetch.py	Mon Oct 23 00:02:07 2017 +0530
+++ b/hgext/fetch.py	Mon Oct 23 00:02:28 2017 +0530
@@ -19,6 +19,7 @@
     exchange,
     hg,
     lock,
+    pycompat,
     registrar,
     util,
 )
@@ -60,6 +61,7 @@
     Returns 0 on success.
     '''
 
+    opts = pycompat.byteskwargs(opts)
     date = opts.get('date')
     if date:
         opts['date'] = util.parsedate(date)