hgext/schemes.py
changeset 49932 bcc45b33efb2
parent 49869 5f71fff8dc74
child 50828 d51a76b5262b
--- a/hgext/schemes.py	Fri Jan 06 13:04:50 2023 -0500
+++ b/hgext/schemes.py	Thu Jan 05 17:02:02 2023 -0500
@@ -135,7 +135,7 @@
 }
 
 
-def _check_drive_letter(scheme):
+def _check_drive_letter(scheme: bytes) -> None:
     """check if a scheme conflict with a Windows drive letter"""
     if (
         pycompat.iswindows
@@ -152,7 +152,7 @@
     schemes.update(dict(ui.configitems(b'schemes')))
     t = templater.engine(templater.parse)
     for scheme, url in schemes.items():
-        _check_drive_letter(schemes)
+        _check_drive_letter(scheme)
         url_scheme = urlutil.url(url).scheme
         if url_scheme in hg.peer_schemes:
             hg.peer_schemes[scheme] = ShortRepository(url, scheme, t)