diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 18:12:01 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 18:12:01 +0300 |
commit | f01e408c1688a207eba18444da8c151c872fba59 (patch) | |
tree | 3330812d856579add4526f10d5284164a15b6037 /Python/_warnings.c | |
parent | 47c5474aa0cbe8dc3cf2c370b19769edd3f2e8d8 (diff) | |
parent | 57a01d3a0ee20ee9eea69b658c6bac0f39541625 (diff) | |
download | cpython-git-f01e408c1688a207eba18444da8c151c872fba59.tar.gz |
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r-- | Python/_warnings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c index 2d9d87839f..40f5c8ecfc 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -730,7 +730,7 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno, goto handle_error; } else if (!is_true) { - Py_XSETREF(*filename, PyUnicode_FromString("__main__")); + Py_SETREF(*filename, PyUnicode_FromString("__main__")); if (*filename == NULL) goto handle_error; } |