debugwalk: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 17:49:57 -0400
changeset 50971 e032f47f5166
parent 50970 f04568add4ee
child 50972 a4d21089bec7
debugwalk: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 17:47:52 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:49:57 2023 -0400
@@ -4166,8 +4166,7 @@
 )
 def debugwalk(ui, repo, *pats, **opts):
     """show how files match on given patterns"""
-    opts = pycompat.byteskwargs(opts)
-    m = scmutil.match(repo[None], pats, opts)
+    m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts))
     if ui.verbose:
         ui.writenoi18n(b'* matcher:\n', stringutil.prettyrepr(m), b'\n')
     items = list(repo[None].walk(m))