# HG changeset patch # User Gregory Szorc # Date 2017-11-21 07:23:10 # Node ID d8d06a930d6033df287589207c591fdb5ce2817f # Parent a1d2fc32bb99b29b1fe9ceada851393304e92cd8 py3: use byteskwargs in sparse.py This removes several dozen failures in Python 3. Differential Revision: https://phab.mercurial-scm.org/D1482 diff --git a/hgext/sparse.py b/hgext/sparse.py --- a/hgext/sparse.py +++ b/hgext/sparse.py @@ -82,6 +82,7 @@ from mercurial import ( extensions, hg, match as matchmod, + pycompat, registrar, sparse, util, @@ -286,6 +287,7 @@ def debugsparse(ui, repo, *pats, **opts) Returns 0 if editing the sparse checkout succeeds. """ + opts = pycompat.byteskwargs(opts) include = opts.get('include') exclude = opts.get('exclude') force = opts.get('force')