Fixed issue with Unicode and python3

parent c07029b3
......@@ -448,7 +448,7 @@ PyObject* PyBobLearnLibsvmMachine_Repr(PyBobLearnLibsvmMachineObject* self) {
PyObject* retval = PyUnicode_FromFormat("<%s float64@%U>",
Py_TYPE(self)->tp_name, PyObject_Unicode(shape));
Py_TYPE(self)->tp_name, PYOBJECT_STR(shape));
#if PYTHON_VERSION_HEX < 0x03000000
if (!retval) return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment