wrapfunction: use sysstr instead of bytes as argument in "sqlitestore"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:27:17 +0100
changeset 50793 1fbae268ecae
parent 50792 54d3a6dc2426
child 50794 c3d7a0828b7b
wrapfunction: use sysstr instead of bytes as argument in "sqlitestore" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/sqlitestore.py
--- a/hgext/sqlitestore.py	Fri Feb 03 04:26:18 2023 +0100
+++ b/hgext/sqlitestore.py	Fri Feb 03 04:27:17 2023 +0100
@@ -1332,9 +1332,9 @@
     extensions.wrapfunction(
         localrepo, b'newreporequirements', newreporequirements
     )
-    extensions.wrapfunction(localrepo, b'makefilestorage', makefilestorage)
-    extensions.wrapfunction(localrepo, b'makemain', makemain)
-    extensions.wrapfunction(verify.verifier, b'__init__', verifierinit)
+    extensions.wrapfunction(localrepo, 'makefilestorage', makefilestorage)
+    extensions.wrapfunction(localrepo, 'makemain', makemain)
+    extensions.wrapfunction(verify.verifier, '__init__', verifierinit)
 
 
 def reposetup(ui, repo):