diff -r 57875cf423c9 -r 2372284d9457 mercurial/cffi/bdiffbuild.py --- a/mercurial/cffi/bdiffbuild.py Sat Oct 05 10:29:34 2019 -0400 +++ b/mercurial/cffi/bdiffbuild.py Sun Oct 06 09:45:02 2019 -0400 @@ -4,11 +4,14 @@ import os ffi = cffi.FFI() -with open(os.path.join(os.path.join(os.path.dirname(__file__), '..'), - 'bdiff.c')) as f: - ffi.set_source("mercurial.cffi._bdiff", - f.read(), include_dirs=['mercurial']) -ffi.cdef(""" +with open( + os.path.join(os.path.join(os.path.dirname(__file__), '..'), 'bdiff.c') +) as f: + ffi.set_source( + "mercurial.cffi._bdiff", f.read(), include_dirs=['mercurial'] + ) +ffi.cdef( + """ struct bdiff_line { int hash, n, e; ssize_t len; @@ -26,7 +29,8 @@ struct bdiff_hunk *base); void bdiff_freehunks(struct bdiff_hunk *l); void free(void*); -""") +""" +) if __name__ == '__main__': ffi.compile()