# HG changeset patch # User Pierre-Yves David # Date 2023-08-29 22:48:30 # Node ID 5f3c2adcc69c2db9356e47c65d63faddd5ca19b1 # Parent dddd8e253c95b5ac4b092a7ab375e1aa6d87e232 path-suboption: use str for "bookmarks_mode" suboptions That second argument refer to an attribute and do not needs to be bytes. diff --git a/mercurial/utils/urlutil.py b/mercurial/utils/urlutil.py --- a/mercurial/utils/urlutil.py +++ b/mercurial/utils/urlutil.py @@ -732,7 +732,7 @@ SUPPORTED_BOOKMARKS_MODES = { } -@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