changeset 35203:d8d06a930d60

py3: use byteskwargs in sparse.py This removes several dozen failures in Python 3. Differential Revision: https://phab.mercurial-scm.org/D1482
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 20 Nov 2017 23:23:10 -0800
parents a1d2fc32bb99
children f12747de13ea
files hgext/sparse.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/sparse.py	Mon Nov 20 23:13:09 2017 -0800
+++ b/hgext/sparse.py	Mon Nov 20 23:23:10 2017 -0800
@@ -82,6 +82,7 @@
     extensions,
     hg,
     match as matchmod,
+    pycompat,
     registrar,
     sparse,
     util,
@@ -286,6 +287,7 @@
 
     Returns 0 if editing the sparse checkout succeeds.
     """
+    opts = pycompat.byteskwargs(opts)
     include = opts.get('include')
     exclude = opts.get('exclude')
     force = opts.get('force')