mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Make PyUCD as ThreadSafe
This commit is contained in:
1 parent
676c641366
commit
3650a2cdce
1 file changed
+3
-1
@@ -5,7 +5,7 @@
|
||||
use crate::function::OptionalArg;
|
||||
use crate::obj::objstr::PyStringRef;
|
||||
use crate::obj::objtype::PyClassRef;
|
||||
use crate::pyobject::{PyClassImpl, PyObject, PyObjectRef, PyResult, PyValue};
|
||||
use crate::pyobject::{PyClassImpl, PyObject, PyObjectRef, PyResult, PyValue, ThreadSafe};
|
||||
use crate::vm::VirtualMachine;
|
||||
|
||||
use itertools::Itertools;
|
||||
@@ -60,6 +60,8 @@ struct PyUCD {
|
||||
unic_version: UnicodeVersion,
|
||||
}
|
||||
|
||||
impl ThreadSafe for PyUCD {}
|
||||
|
||||
impl PyValue for PyUCD {
|
||||
fn class(vm: &VirtualMachine) -> PyClassRef {
|
||||
vm.class("unicodedata", "UCD")
|
||||
|
||||
Reference in new issue
Block a user