version: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 02:17:38 -0400
changeset 50854 1144c69c7f58
parent 50853 6bcfd44bc1cd
child 50855 b76a938cc9dd
version: migrate `opts` to native kwargs
mercurial/commands.py
--- a/mercurial/commands.py	Sun Aug 20 02:16:41 2023 -0400
+++ b/mercurial/commands.py	Sun Aug 20 02:17:38 2023 -0400
@@ -7992,10 +7992,9 @@
       :bundled: Boolean. True if included in the release.
       :name:    String. Extension name.
     """
-    opts = pycompat.byteskwargs(opts)
     if ui.verbose:
         ui.pager(b'version')
-    fm = ui.formatter(b"version", opts)
+    fm = ui.formatter(b"version", pycompat.byteskwargs(opts))
     fm.startitem()
     fm.write(
         b"ver", _(b"Mercurial Distributed SCM (version %s)\n"), util.version()