# HG changeset patch # User Matt Harbison # Date 1692652458 14400 # Node ID 45381a1dd367e15d8437b6125508a927f27dda36 # Parent 44c29568898fb0361049133154887b22cfdafbd1 debugformat: migrate `opts` to native kwargs diff -r 44c29568898f -r 45381a1dd367 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):