summaryrefslogtreecommitdiffstats
path: root/Python/compile.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/compile.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/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index bad1f50..51f2874 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1415,7 +1415,7 @@ compiler_class(struct compiler *c, stmt_ty s)
s->lineno))
return 0;
Py_INCREF(s->v.ClassDef.name);
- Py_SETREF(c->u->u_private, s->v.ClassDef.name);
+ Py_XSETREF(c->u->u_private, s->v.ClassDef.name);
str = PyString_InternFromString("__name__");
if (!str || !compiler_nameop(c, str, Load)) {
Py_XDECREF(str);