Skip to content

Commit f166e09

Browse files
committed
Stop using _PyUnicode_AsString() to fix the build with Python 3.13.0a1
It was removed upstream in python/cpython#107021 Fixes pygobject#343
1 parent 4a8a6ed commit f166e09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cairo/enums.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ int_enum_get_name(PyObject *obj) {
126126
return NULL;
127127

128128
return PyUnicode_FromFormat ("%s.%s", Py_TYPE(obj)->tp_name,
129-
_PyUnicode_AsString(name_obj));
129+
PyUnicode_AsUTF8(name_obj));
130130
}
131131

132132
static PyObject *

0 commit comments

Comments
 (0)