Skip to content

Commit ad737fc

Browse files
committed
gate 3.9
1 parent 4094b64 commit ad737fc

File tree

2 files changed

+4
-81
lines changed

2 files changed

+4
-81
lines changed

runtime_stacks_quick_test.py

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/native/crashtracker/crashtracker_runtime_stacks.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,13 @@ unsafe fn thread_top_frame(tstate: *mut pyo3_ffi::PyThreadState) -> *mut pyo3_ff
191191
ptr::null_mut()
192192
} else {
193193
// We won't support Python 3.9
194-
#[cfg(Py_3_9)]
194+
#[cfg(not(Py_3_10))]
195195
let frame: *mut pyo3_ffi::PyFrameObject = ptr::null_mut();
196-
#[cfg(not(Py_3_9))]
196+
197+
#[cfg(Py_3_10)]
197198
let frame = pyo3_ffi::PyThreadState_GetFrame(tstate);
198199

199-
#[cfg(not(any(Py_3_11, Py_3_12, Py_3_13, Py_3_14)))]
200+
#[cfg(not(Py_3_11))]
200201
{
201202
if !frame.is_null() {
202203
// On CPython <= 3.10 it returns/holds a borrowed frame, so we need to

0 commit comments

Comments
 (0)