Skip to content

Commit 0c95edd

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 #343
1 parent 64733c1 commit 0c95edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)