# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-10-22 18:32:28 # Node ID a56bf5591918691659b103dbc35f7077dc019425 # Parent a8bc191fee5ab62c6beafcf70753caa2a37f1e19 py3: handle keyword arguments in hgext/fetch.py Differential Revision: https://phab.mercurial-scm.org/D1302 diff --git a/hgext/fetch.py b/hgext/fetch.py --- a/hgext/fetch.py +++ b/hgext/fetch.py @@ -19,6 +19,7 @@ from mercurial import ( exchange, hg, lock, + pycompat, registrar, util, ) @@ -60,6 +61,7 @@ def fetch(ui, repo, source='default', ** Returns 0 on success. ''' + opts = pycompat.byteskwargs(opts) date = opts.get('date') if date: opts['date'] = util.parsedate(date)