Fix T85573: Building with Python 3.10a5 fails
Replace deprecated _PyUnicode_AsString{AndSize} usage.
T83626 still needs to be resolved before 3.10 is usable.
This commit is contained in:
@@ -118,7 +118,7 @@ static int py_msgbus_rna_key_from_py(PyObject *py_sub,
|
||||
PointerRNA data_type_ptr = {
|
||||
.type = data_type,
|
||||
};
|
||||
const char *data_prop_str = _PyUnicode_AsString(data_prop_py);
|
||||
const char *data_prop_str = PyUnicode_AsUTF8(data_prop_py);
|
||||
PropertyRNA *data_prop = RNA_struct_find_property(&data_type_ptr, data_prop_str);
|
||||
|
||||
if (data_prop == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user