paths: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 01:35:14 -0400
changeset 50842 55a9ea786291
parent 50841 b4425b5bd80e
child 50843 7ef29f8b723d
paths: migrate `opts` to native kwargs
mercurial/commands.py
--- a/mercurial/commands.py	Sun Aug 20 01:32:22 2023 -0400
+++ b/mercurial/commands.py	Sun Aug 20 01:35:14 2023 -0400
@@ -5196,12 +5196,10 @@
     Returns 0 on success.
     """
 
-    opts = pycompat.byteskwargs(opts)
-
     pathitems = urlutil.list_paths(ui, search)
     ui.pager(b'paths')
 
-    fm = ui.formatter(b'paths', opts)
+    fm = ui.formatter(b'paths', pycompat.byteskwargs(opts))
     if fm.isplain():
         hidepassword = urlutil.hidepassword
     else: