[Python-checkins] bpo-39831: Remove outdated comment. (GH-18764)
Serhiy Storchaka
webhook-mailer at python.org
Tue Mar 3 12:43:37 EST 2020
https://github.com/python/cpython/commit/ae75a294352e9b9487f5dc8e88f068e7e6974dc2
commit: ae75a294352e9b9487f5dc8e88f068e7e6974dc2
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-03-03T19:43:29+02:00
summary:
bpo-39831: Remove outdated comment. (GH-18764)
files:
M Python/_warnings.c
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 92378faa61f3e..39f8033cd906a 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -889,11 +889,9 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno,
return 1;
handle_error:
- /* filename not XDECREF'ed here as there is no way to jump here with a
- dangling reference. */
Py_XDECREF(*registry);
Py_XDECREF(*module);
- Py_XDECREF(*filename);
+ Py_DECREF(*filename);
return 0;
}
More information about the Python-checkins
mailing list