debugrevlogindex: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 17:36:36 -0400
changeset 50965 56a966bc6b1a
parent 50964 8f25df137282
child 50966 98d1117dc904
debugrevlogindex: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 17:35:13 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:36:36 2023 -0400
@@ -3230,9 +3230,10 @@
 )
 def debugrevlogindex(ui, repo, file_=None, **opts):
     """dump the contents of a revlog index"""
-    opts = pycompat.byteskwargs(opts)
-    r = cmdutil.openrevlog(repo, b'debugrevlogindex', file_, opts)
-    format = opts.get(b'format', 0)
+    r = cmdutil.openrevlog(
+        repo, b'debugrevlogindex', file_, pycompat.byteskwargs(opts)
+    )
+    format = opts.get('format', 0)
     if format not in (0, 1):
         raise error.Abort(_(b"unknown format %d") % format)