diff hgext/fetch.py @ 35032:a56bf5591918

py3: handle keyword arguments in hgext/fetch.py Differential Revision: https://phab.mercurial-scm.org/D1302
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 23 Oct 2017 00:02:28 +0530
parents 9c242e9fca65
children c6061cadb400
line wrap: on
line diff
--- 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)