mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00
bpo-39585: Delete a pending comment in _warning.c (GH-18414)
This commit is contained in:
parent
faf626b8cc
commit
57c7810489
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue