py3: use pycompat.byteskwargs() in tests/autodiff.py
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 05 Apr 2018 17:13:09 +0530
changeset 37368 cdccfe20eed7
parent 37367 87c4253bebdb
child 37369 22f19da5736e
py3: use pycompat.byteskwargs() in tests/autodiff.py Differential Revision: https://phab.mercurial-scm.org/D3129
tests/autodiff.py
--- a/tests/autodiff.py	Thu Apr 05 17:00:15 2018 +0530
+++ b/tests/autodiff.py	Thu Apr 05 17:13:09 2018 +0530
@@ -5,6 +5,7 @@
 from mercurial import (
     error,
     patch,
+    pycompat,
     registrar,
     scmutil,
 )
@@ -16,6 +17,7 @@
     [(b'', b'git', b'', b'git upgrade mode (yes/no/auto/warn/abort)')],
     b'[OPTION]... [FILE]...')
 def autodiff(ui, repo, *pats, **opts):
+    opts = pycompat.byteskwargs(opts)
     diffopts = patch.difffeatureopts(ui, opts)
     git = opts.get(b'git', b'no')
     brokenfiles = set()