Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[build-system]
requires = ["setuptools", "wheel", "Cython<3"]
requires = ["setuptools", "wheel", "Cython"]
4 changes: 2 additions & 2 deletions src/esm.pyx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cimport aho_corasick

cdef aho_corasick.ac_error_code decref_result_object(void *item, void* data):
cdef aho_corasick.ac_error_code decref_result_object(void *item, void* data) noexcept:
aho_corasick.Py_DecRef(<object>item)
return aho_corasick.AC_SUCCESS

cdef aho_corasick.ac_error_code append_result(void* data,
aho_corasick.ac_result* result):
aho_corasick.ac_result* result) noexcept:
result_list = <list>data
result_tuple = ((result.start, result.end), <object>result.object)
result_list.append(result_tuple)
Expand Down