Commit 23c3bcf
committed
Correct _FREE_THREADED_BUILD detection for Py_GIL_DISABLED
`sysconfig.get_config_var("Py_GIL_DISABLED")` may be defined as 0 on
non-free-threaded builds. The previous check used `is not None`, which
incorrectly treated `Py_GIL_DISABLED=0` as a free-threaded build.
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>1 parent 6d05e55 commit 23c3bcf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments