Skip to content

Commit 57c7810

Browse files
authored
bpo-39585: Delete a pending comment in _warning.c (GH-18414)
1 parent faf626b commit 57c7810

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/_warnings.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,9 @@ show_warning(PyObject *filename, int lineno, PyObject *text,
491491
PyOS_snprintf(lineno_str, sizeof(lineno_str), ":%d: ", lineno);
492492

493493
name = _PyObject_GetAttrId(category, &PyId___name__);
494-
if (name == NULL) /* XXX Can an object lack a '__name__' attribute? */
494+
if (name == NULL) {
495495
goto error;
496+
}
496497

497498
f_stderr = _PySys_GetObjectId(&PyId_stderr);
498499
if (f_stderr == NULL) {

0 commit comments

Comments
 (0)