bpo-39585: Delete a pending comment in _warning.c (GH-18414)
This commit is contained in:
parent
faf626b8cc
commit
57c7810489
@ -491,8 +491,9 @@ show_warning(PyObject *filename, int lineno, PyObject *text,
|
|||||||
PyOS_snprintf(lineno_str, sizeof(lineno_str), ":%d: ", lineno);
|
PyOS_snprintf(lineno_str, sizeof(lineno_str), ":%d: ", lineno);
|
||||||
|
|
||||||
name = _PyObject_GetAttrId(category, &PyId___name__);
|
name = _PyObject_GetAttrId(category, &PyId___name__);
|
||||||
if (name == NULL) /* XXX Can an object lack a '__name__' attribute? */
|
if (name == NULL) {
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
f_stderr = _PySys_GetObjectId(&PyId_stderr);
|
f_stderr = _PySys_GetObjectId(&PyId_stderr);
|
||||||
if (f_stderr == NULL) {
|
if (f_stderr == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user