# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1508697148 -19800 # Node ID a56bf5591918691659b103dbc35f7077dc019425 # Parent a8bc191fee5ab62c6beafcf70753caa2a37f1e19 py3: handle keyword arguments in hgext/fetch.py Differential Revision: https://phab.mercurial-scm.org/D1302 diff -r a8bc191fee5a -r a56bf5591918 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)