wrapfunction: use sysstr instead of bytes as argument in "schemes"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:25:57 +0100
changeset 50828 d51a76b5262b
parent 50827 5ac5f16277a9
child 50829 54d3a6dc2426
wrapfunction: use sysstr instead of bytes as argument in "schemes" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/schemes.py
--- a/hgext/schemes.py	Fri Feb 03 04:25:43 2023 +0100
+++ b/hgext/schemes.py	Fri Feb 03 04:25:57 2023 +0100
@@ -159,7 +159,7 @@
         else:
             hg.repo_schemes[scheme] = ShortRepository(url, scheme, t)
 
-    extensions.wrapfunction(urlutil, b'hasdriveletter', hasdriveletter)
+    extensions.wrapfunction(urlutil, 'hasdriveletter', hasdriveletter)
 
 
 @command(b'debugexpandscheme', norepo=True)