1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-27 18:50:07 +03:00

Merge branch 'master' into 'master'

python: return None if PY_IMPORT_STRING returns NULL

See merge request GNOME/libxml2!15
This commit is contained in:
Mike Gorse 2025-03-19 08:51:17 +00:00
commit 2e67f32f76

View File

@ -275,6 +275,10 @@ libxml_charPtrConstWrap(const char *str)
return (Py_None);
}
ret = PY_IMPORT_STRING(str);
if (ret == NULL) {
Py_INCREF(Py_None);
return (Py_None);
}
return (ret);
}