fix bug when checking for str type in PropertyEnumeration::setPyObject

This commit is contained in:
wmayer
2019-04-07 12:16:18 +02:00
parent 35ecc15a80
commit 9346d76aa2

View File

@@ -508,7 +508,7 @@ void PropertyEnumeration::setPyObject(PyObject *value)
#endif
}
#if PY_MAJOR_VERSION < 3
if (PyString_Check(item)) {
else if (PyString_Check(item)) {
values[i] = PyString_AsString(item);
}
#endif