changeset 50791:d51a76b5262b

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`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 03 Feb 2023 04:25:57 +0100
parents 5ac5f16277a9
children 54d3a6dc2426
files hgext/schemes.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)