Skip to content

Commit 9c4d800

Browse files
committed
Revert sysconfig freethreading check.
1 parent 1118f6f commit 9c4d800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/profiling/sampling/sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _pause_threads(unwinder, blocking):
4141
except ImportError:
4242
LiveStatsCollector = None
4343

44-
_FREE_THREADED_BUILD = bool(sysconfig.get_config_var("Py_GIL_DISABLED"))
44+
_FREE_THREADED_BUILD = sysconfig.get_config_var("Py_GIL_DISABLED") is not None
4545
# Minimum number of samples required before showing the TUI
4646
# If fewer samples are collected, we skip the TUI and just print a message
4747
MIN_SAMPLES_FOR_TUI = 200

0 commit comments

Comments
 (0)