path-suboption: use str for "bookmarks_mode" suboptions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 00:48:30 +0200
changeset 50906 5f3c2adcc69c
parent 50905 dddd8e253c95
child 50907 b59ad4292c7a
path-suboption: use str for "bookmarks_mode" suboptions That second argument refer to an attribute and do not needs to be bytes.
mercurial/utils/urlutil.py
--- a/mercurial/utils/urlutil.py	Wed Aug 30 00:47:48 2023 +0200
+++ b/mercurial/utils/urlutil.py	Wed Aug 30 00:48:30 2023 +0200
@@ -732,7 +732,7 @@
 }
 
 
-@pathsuboption(b'bookmarks.mode', b'bookmarks_mode')
+@pathsuboption(b'bookmarks.mode', 'bookmarks_mode')
 def bookmarks_mode_option(ui, path, value):
     if value not in SUPPORTED_BOOKMARKS_MODES:
         path_name = path.name