bpo-39585: Delete a pending comment in _warning.c (GH-18414)

This commit is contained in:
Hai Shi 2020-03-14 21:40:58 +08:00 committed by GitHub
parent faf626b8cc
commit 57c7810489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -491,8 +491,9 @@ show_warning(PyObject *filename, int lineno, PyObject *text,
PyOS_snprintf(lineno_str, sizeof(lineno_str), ":%d: ", lineno);
name = _PyObject_GetAttrId(category, &PyId___name__);
if (name == NULL) /* XXX Can an object lack a '__name__' attribute? */
if (name == NULL) {
goto error;
}
f_stderr = _PySys_GetObjectId(&PyId_stderr);
if (f_stderr == NULL) {