wrapfunction: use sysstr instead of bytes as argument in "bookflow"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:10:00 +0100
changeset 50775 3c8a31be81df
parent 50774 caa0a25f7243
child 50776 335aeb3d670b
wrapfunction: use sysstr instead of bytes as argument in "bookflow" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/bookflow.py
--- a/hgext/bookflow.py	Fri Feb 03 04:09:49 2023 +0100
+++ b/hgext/bookflow.py	Fri Feb 03 04:10:00 2023 +0100
@@ -117,8 +117,8 @@
 
 
 def uisetup(ui):
-    extensions.wrapfunction(bookmarks, b'update', bookmarks_update)
-    extensions.wrapfunction(bookmarks, b'addbookmarks', bookmarks_addbookmarks)
+    extensions.wrapfunction(bookmarks, 'update', bookmarks_update)
+    extensions.wrapfunction(bookmarks, 'addbookmarks', bookmarks_addbookmarks)
     extensions.wrapcommand(commands.table, b'commit', commands_commit)
     extensions.wrapcommand(commands.table, b'pull', commands_pull)
     if not ui.configbool(MY_NAME, b'enable-branches'):