changeset 37368:cdccfe20eed7

py3: use pycompat.byteskwargs() in tests/autodiff.py Differential Revision: https://phab.mercurial-scm.org/D3129
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 05 Apr 2018 17:13:09 +0530
parents 87c4253bebdb
children 22f19da5736e
files tests/autodiff.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()