Add missing PyUnicode_Check which prevented QVariants being created from Python 3 strings

This commit is contained in:
AnyOldName3
2018-09-19 21:45:42 +01:00
parent 6ce4138b31
commit 84c04c32dc
+1 -1
View File
@@ -250,7 +250,7 @@ struct QVariant_from_python_obj
}
static void *convertible(PyObject *objPtr) {
if (!SIPBytes_Check(objPtr) && !PyLong_Check(objPtr) &&
if (!SIPBytes_Check(objPtr) && !PyUnicode_Check(objPtr) && !PyLong_Check(objPtr) &&
!PyBool_Check(objPtr) && !PyList_Check(objPtr)) {
return nullptr;
}