Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pass error up if PyUnicode_FromFormat returns NULL
  • Loading branch information
itamaro committed Apr 25, 2023
commit fb2bd7fbf086b633e8b0fcc49dc3f24ec6b7951c
3 changes: 3 additions & 0 deletions Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2455,6 +2455,9 @@ _asyncio_Task_get_name_impl(TaskObj *self)
PyObject *name = PyUnicode_FromFormat(
"Task-%" PRIu64, ++state->task_name_counter);
Comment thread
itamaro marked this conversation as resolved.
Outdated
Py_XSETREF(self->task_name, name);
if (self->task_name == NULL) {
return NULL;
}
}
return Py_NewRef(self->task_name);
}
Expand Down