debugextensions: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 17:09:45 -0400
changeset 50950 5dc20e1f0518
parent 50949 8e5083590cfe
child 50951 44c29568898f
debugextensions: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 17:06:47 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:09:45 2023 -0400
@@ -1473,10 +1473,9 @@
 @command(b'debugextensions', cmdutil.formatteropts, [], optionalrepo=True)
 def debugextensions(ui, repo, **opts):
     '''show information about active extensions'''
-    opts = pycompat.byteskwargs(opts)
     exts = extensions.extensions(ui)
     hgver = util.version()
-    fm = ui.formatter(b'debugextensions', opts)
+    fm = ui.formatter(b'debugextensions', pycompat.byteskwargs(opts))
     for extname, extmod in sorted(exts, key=operator.itemgetter(0)):
         isinternal = extensions.ismoduleinternal(extmod)
         extsource = None