changeset 51791:6d7fdf90aa96 stable

cffi: call bytes() instead of str() on CFFI buffer instances
author Manuel Jacob <me@manueljacob.de>
date Mon, 05 Aug 2024 21:21:32 +0200
parents ecc3a893979d
children 472699b5ddb3
files mercurial/cffi/bdiff.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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