mercurial/manifest.py
changeset 51760 2f88df88f5b9
parent 51754 421c9b3f2f4e
child 51761 50b3ff0ec297
--- a/mercurial/manifest.py	Sun Aug 04 10:45:31 2024 +0200
+++ b/mercurial/manifest.py	Sun Aug 04 10:47:29 2024 +0200
@@ -143,10 +143,10 @@
     __next__ = next
 
 
-def unhexlify(data, extra, pos, length):
+def unhexlify(data: bytes, extra: int, pos, length: int):
     s = bin(data[pos : pos + length])
     if extra:
-        s += chr(extra & 0xFF)
+        s += bytes([extra & 0xFF])
     return s