diff options
Diffstat (limited to 'gobject/pygobject.h')
-rw-r--r-- | gobject/pygobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index aaab860..e3c3df1 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -320,7 +320,7 @@ pygobject_init(int req_major, int req_minor, int req_micro) Py_XDECREF(traceback); PyErr_Format(PyExc_ImportError, "could not import gobject (error was: %s)", - PyString_AsString(py_orig_exc)); + _PyUnicode_AsString(py_orig_exc)); Py_DECREF(py_orig_exc); } else { PyErr_SetString(PyExc_ImportError, |