We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e0dac commit 3d5b498Copy full SHA for 3d5b498
1 file changed
sqlitefts/tokenizer.py
@@ -2,7 +2,9 @@
2
"""
3
a proof of concept implementation of SQLite FTS tokenizers in Python
4
5
+
6
import sys
7
+import sysconfig
8
9
from cffi import FFI # type: ignore
10
@@ -26,7 +28,7 @@
26
28
except:
27
29
dll = ffi.dlopen(find_library("sqlite3"))
30
-if "t" in sys.abiflags:
31
+if sysconfig.get_config_var("Py_GIL_DISABLED") == 1:
32
ffi.cdef(
33
34
typedef struct sqlite3 sqlite3;
0 commit comments