Skip to content

Commit ae75a29

Browse files
bpo-39831: Remove outdated comment. (GH-18764)
1 parent 91fe414 commit ae75a29

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/_warnings.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,11 +889,9 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno,
889889
return 1;
890890

891891
handle_error:
892-
/* filename not XDECREF'ed here as there is no way to jump here with a
893-
dangling reference. */
894892
Py_XDECREF(*registry);
895893
Py_XDECREF(*module);
896-
Py_XDECREF(*filename);
894+
Py_DECREF(*filename);
897895
return 0;
898896
}
899897

0 commit comments

Comments
 (0)