mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
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);
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user