[Python-checkins] bpo-39831: Remove outdated comment. (GH-18764)

Miss Islington (bot) webhook-mailer at python.org
Tue Mar 3 13:01:17 EST 2020


https://github.com/python/cpython/commit/57fb29219f09ee705065e39ad488334a9c7e3d71
commit: 57fb29219f09ee705065e39ad488334a9c7e3d71
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-03T10:01:09-08:00
summary:

bpo-39831: Remove outdated comment. (GH-18764)

(cherry picked from commit ae75a294352e9b9487f5dc8e88f068e7e6974dc2)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
M Python/_warnings.c

diff --git a/Python/_warnings.c b/Python/_warnings.c
index 87269dd4dbc9e..52a13dfc62ccc 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -886,11 +886,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