releasenotes: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 17:09:33 -0400
changeset 50883 9ed17632ad83
parent 50882 75b90a8eb168
child 50884 b5066b2b40f2
releasenotes: migrate `opts` to native kwargs
hgext/releasenotes.py
--- a/hgext/releasenotes.py	Sun Aug 20 17:05:52 2023 -0400
+++ b/hgext/releasenotes.py	Sun Aug 20 17:09:33 2023 -0400
@@ -24,7 +24,6 @@
     error,
     logcmdutil,
     minirst,
-    pycompat,
     registrar,
     util,
 )
@@ -665,17 +664,16 @@
     admonitions (if any).
     """
 
-    opts = pycompat.byteskwargs(opts)
     sections = releasenotessections(ui, repo)
 
-    cmdutil.check_incompatible_arguments(opts, b'list', [b'rev', b'check'])
+    cmdutil.check_incompatible_arguments(opts, 'list', ['rev', 'check'])
 
-    if opts.get(b'list'):
+    if opts.get('list'):
         return _getadmonitionlist(ui, sections)
 
-    rev = opts.get(b'rev')
+    rev = opts.get('rev')
     revs = logcmdutil.revrange(repo, [rev or b'not public()'])
-    if opts.get(b'check'):
+    if opts.get('check'):
         return checkadmonitions(ui, repo, sections.names(), revs)
 
     incoming = parsenotesfromrevisions(repo, sections.names(), revs)