Skip to content

Commit

Permalink
Merge pull request #348 from lazka/py313-fix
Browse files Browse the repository at this point in the history
Stop using _PyUnicode_AsString() to fix the build with Python 3.13.0a1
  • Loading branch information
lazka authored Oct 21, 2023
2 parents ee6427a + f166e09 commit 6ff2866
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 6ff2866

Please sign in to comment.