# HG changeset patch # User Matt Harbison # Date 1692651067 14400 # Node ID ad9b7017ca22ddaba227eff2ff5fcd8f6fdd5812 # Parent 2a7dba8658a7e2a3cd3c10080f5b5e3d725e215c debugcapabilities: migrate `opts` to native kwargs diff -r 2a7dba8658a7 -r ad9b7017ca22 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Mon Aug 21 16:19:51 2023 -0400 +++ b/mercurial/debugcommands.py Mon Aug 21 16:51:07 2023 -0400 @@ -484,8 +484,7 @@ @command(b'debugcapabilities', [], _(b'PATH'), norepo=True) def debugcapabilities(ui, path, **opts): """lists the capabilities of a remote peer""" - opts = pycompat.byteskwargs(opts) - peer = hg.peer(ui, opts, path) + peer = hg.peer(ui, pycompat.byteskwargs(opts), path) try: caps = peer.capabilities() ui.writenoi18n(b'Main capabilities:\n')