|
@@ -608,7 +608,7 @@ PyObject* ctkAbstractPythonManager::pythonObject(const QString& variableNameAndF
|
|
|
continue;
|
|
|
}
|
|
|
QString keyStr = PyString_AsString(key);
|
|
|
- if (keyStr.operator ==(compareFunction))
|
|
|
+ if (keyStr.operator ==(compareFunction.toLatin1()))
|
|
|
{
|
|
|
finalPythonObject = value;
|
|
|
break;
|
|
@@ -635,7 +635,7 @@ PyObject* ctkAbstractPythonManager::pythonModule(const QString& module)
|
|
|
}
|
|
|
foreach(const QString& module, moduleList)
|
|
|
{
|
|
|
- object = PyDict_GetItemString(dict, module.toAscii().data());
|
|
|
+ object = PyDict_GetItemString(dict, module.toLatin1().data());
|
|
|
if (prevObject)
|
|
|
{
|
|
|
Py_DECREF(prevObject);
|