Mercurial > hg
diff mercurial/cffi/bdiffbuild.py @ 43668:53607fd3ec6c stable
cffi: fix build on Python 3
CFFI expects the arguments to be of type str, which means that the string
literals should not have the `b` prefix.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 17 Nov 2019 19:55:01 +0100 |
parents | 687b865b95ad |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/mercurial/cffi/bdiffbuild.py Sat Nov 16 20:08:35 2019 +0100 +++ b/mercurial/cffi/bdiffbuild.py Sun Nov 17 19:55:01 2019 +0100 @@ -5,10 +5,10 @@ ffi = cffi.FFI() with open( - os.path.join(os.path.join(os.path.dirname(__file__), b'..'), b'bdiff.c') + os.path.join(os.path.join(os.path.dirname(__file__), '..'), 'bdiff.c') ) as f: ffi.set_source( - b"mercurial.cffi._bdiff", f.read(), include_dirs=[b'mercurial'] + "mercurial.cffi._bdiff", f.read(), include_dirs=['mercurial'] ) ffi.cdef( """