diff -r 39e2b2d062c1 -r 493034cc3265 mercurial/urllibcompat.py --- a/mercurial/urllibcompat.py Thu Jul 18 12:03:29 2024 +0200 +++ b/mercurial/urllibcompat.py Thu Jul 18 12:36:12 2024 +0200 @@ -109,6 +109,7 @@ ), ) + # urllib.parse.quote() accepts both str and bytes, decodes bytes # (if necessary), and returns str. This is wonky. We provide a custom # implementation that only accepts bytes and emits bytes.