summaryrefslogtreecommitdiffstats
path: root/Python/_warnings.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-06 06:51:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-06 06:51:18 (GMT)
commitbc62af1bbe118aa678cb6fa4ecad40f7250b56de (patch)
tree785d2ad869c2c1d058bbfdc6e9af7fb7278b9d73 /Python/_warnings.c
parentaad86a6015f8d4e1e4faea07e1400152f5843443 (diff)
downloadcpython-bc62af1bbe118aa678cb6fa4ecad40f7250b56de.zip
cpython-bc62af1bbe118aa678cb6fa4ecad40f7250b56de.tar.gz
cpython-bc62af1bbe118aa678cb6fa4ecad40f7250b56de.tar.bz2
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r--Python/_warnings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 8e8c0cc..932f2f8 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -528,7 +528,7 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno,
goto handle_error;
}
else if (!is_true) {
- Py_SETREF(*filename, PyString_FromString("__main__"));
+ Py_XSETREF(*filename, PyString_FromString("__main__"));
if (*filename == NULL)
goto handle_error;
}