Skip to content

Commit 59197cd

Browse files
committed
Mark PyTraceback as ThreadSafe
1 parent d827628 commit 59197cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm/src/obj/objtraceback.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::frame::FrameRef;
22
use crate::obj::objtype::PyClassRef;
3-
use crate::pyobject::{PyClassImpl, PyContext, PyRef, PyValue};
3+
use crate::pyobject::{PyClassImpl, PyContext, PyRef, PyValue, ThreadSafe};
44
use crate::vm::VirtualMachine;
55

66
#[pyclass]
@@ -11,6 +11,7 @@ pub struct PyTraceback {
1111
pub lasti: usize,
1212
pub lineno: usize,
1313
}
14+
impl ThreadSafe for PyTraceback {}
1415

1516
pub type PyTracebackRef = PyRef<PyTraceback>;
1617

0 commit comments

Comments
 (0)