From 84c04c32dc7794c95267b0e6b997edae93625790 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Wed, 19 Sep 2018 21:45:42 +0100 Subject: [PATCH] Add missing PyUnicode_Check which prevented QVariants being created from Python 3 strings --- src/runner/pythonrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index cc4a8cf..018c55a 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -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; }