diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 09:45:48 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 09:45:48 +0300 |
commit | 58455ad4ed5e6f1eda17ceb0dd7f5612a980e48d (patch) | |
tree | 1564989c2a0b1389787c357194cae65fb70849c0 /Python/compile.c | |
parent | 719f2f64743c4484f3612378a3ceefe8cae3da05 (diff) | |
download | cpython-58455ad4ed5e6f1eda17ceb0dd7f5612a980e48d.tar.gz |
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 2c4f7d7b41..1e720eab0d 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1756,7 +1756,7 @@ compiler_class(struct compiler *c, stmt_ty s) { /* use the class name for name mangling */ 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); /* load (global) __name__ ... */ str = PyUnicode_InternFromString("__name__"); if (!str || !compiler_nameop(c, str, Load)) { |