mercurial/debugcommands.py
changeset 50944 2a7dba8658a7
parent 50929 18c8c18993f0
child 50945 ad9b7017ca22
--- a/mercurial/debugcommands.py	Fri Sep 08 20:34:41 2023 +0200
+++ b/mercurial/debugcommands.py	Mon Aug 21 16:19:51 2023 -0400
@@ -394,7 +394,6 @@
 
 def _debugobsmarkers(ui, part, indent=0, **opts):
     """display version and markers contained in 'data'"""
-    opts = pycompat.byteskwargs(opts)
     data = part.read()
     indent_string = b' ' * indent
     try:
@@ -407,7 +406,7 @@
         msg = b"%sversion: %d (%d bytes)\n"
         msg %= indent_string, version, len(data)
         ui.write(msg)
-        fm = ui.formatter(b'debugobsolete', opts)
+        fm = ui.formatter(b'debugobsolete', pycompat.byteskwargs(opts))
         for rawmarker in sorted(markers):
             m = obsutil.marker(None, rawmarker)
             fm.startitem()