debugcapabilities: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 16:51:07 -0400
changeset 50945 ad9b7017ca22
parent 50944 2a7dba8658a7
child 50946 4135e7271b9e
debugcapabilities: migrate `opts` to native kwargs
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')