cffi: call bytes() instead of str() on CFFI buffer instances stable
authorManuel Jacob <me@manueljacob.de>
Mon, 05 Aug 2024 21:21:32 +0200
branchstable
changeset 51791 6d7fdf90aa96
parent 51790 ecc3a893979d
child 51792 472699b5ddb3
cffi: call bytes() instead of str() on CFFI buffer instances
mercurial/cffi/bdiff.py
--- a/mercurial/cffi/bdiff.py	Mon Aug 05 21:08:36 2024 +0200
+++ b/mercurial/cffi/bdiff.py	Mon Aug 05 21:21:32 2024 +0200
@@ -76,7 +76,7 @@
                         lgt,
                     )
                 )
-                rl.append(str(ffi.buffer((b[0] + lb).l, lgt)))
+                rl.append(bytes(ffi.buffer((b[0] + lb).l, lgt)))
             la = h.a2
             lb = h.b2
             h = h.next