debugformat: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 17:14:18 -0400
changeset 50952 45381a1dd367
parent 50951 44c29568898f
child 50953 7825175d5ad5
debugformat: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 17:12:03 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:14:18 2023 -0400
@@ -1709,14 +1709,13 @@
 
     Use --verbose to get extra information about current config value and
     Mercurial default."""
-    opts = pycompat.byteskwargs(opts)
     maxvariantlength = max(len(fv.name) for fv in upgrade.allformatvariant)
     maxvariantlength = max(len(b'format-variant'), maxvariantlength)
 
     def makeformatname(name):
         return b'%s:' + (b' ' * (maxvariantlength - len(name)))
 
-    fm = ui.formatter(b'debugformat', opts)
+    fm = ui.formatter(b'debugformat', pycompat.byteskwargs(opts))
     if fm.isplain():
 
         def formatvalue(value):