Skip to content

Commit

Permalink
Stop using _PyUnicode_AsString() to fix the build with Python 3.13.0a1
Browse files Browse the repository at this point in the history
It was removed upstream in python/cpython#107021

Fixes #343
  • Loading branch information
lazka committed Oct 21, 2023
1 parent 64733c1 commit 0c95edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cairo/enums.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int_enum_get_name(PyObject *obj) {
return NULL;

return PyUnicode_FromFormat ("%s.%s", Py_TYPE(obj)->tp_name,
_PyUnicode_AsString(name_obj));
PyUnicode_AsUTF8(name_obj));
}

static PyObject *
Expand Down

0 comments on commit 0c95edd

Please sign in to comment.