wrapfunction: use sysstr instead of bytes as argument in "remotenames"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:25:43 +0100
changeset 50790 5ac5f16277a9
parent 50789 cbd1da102417
child 50791 d51a76b5262b
wrapfunction: use sysstr instead of bytes as argument in "remotenames" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/remotenames.py
--- a/hgext/remotenames.py	Fri Feb 03 04:25:07 2023 +0100
+++ b/hgext/remotenames.py	Fri Feb 03 04:25:43 2023 +0100
@@ -255,7 +255,7 @@
 
 
 def extsetup(ui):
-    extensions.wrapfunction(bookmarks, b'_printbookmarks', wrapprintbookmarks)
+    extensions.wrapfunction(bookmarks, '_printbookmarks', wrapprintbookmarks)
 
 
 def reposetup(ui, repo):