debugindexdot: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 17:16:43 -0400
changeset 50954 1cfc49e342c3
parent 50953 7825175d5ad5
child 50955 45a53fc82ab2
debugindexdot: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 17:15:30 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:16:43 2023 -0400
@@ -1926,8 +1926,9 @@
 )
 def debugindexdot(ui, repo, file_=None, **opts):
     """dump an index DAG as a graphviz dot file"""
-    opts = pycompat.byteskwargs(opts)
-    r = cmdutil.openstorage(repo, b'debugindexdot', file_, opts)
+    r = cmdutil.openstorage(
+        repo, b'debugindexdot', file_, pycompat.byteskwargs(opts)
+    )
     ui.writenoi18n(b"digraph G {\n")
     for i in r:
         node = r.node(i)