[Python-checkins] cpython (2.7): Issue #26200: Restored more safe usages of Py_SETREF.

serhiy.storchaka python-checkins at python.org
Mon Apr 11 02:58:11 EDT 2016


https://hg.python.org/cpython/rev/f21740a1abde
changeset: 100916:f21740a1abde
branch: 2.7
parent: 100908:9cf8572abe58
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Apr 11 09:53:37 2016 +0300
summary:
 Issue #26200: Restored more safe usages of Py_SETREF.
files:
 Modules/_functoolsmodule.c | 6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
--- a/Modules/_functoolsmodule.c
+++ b/Modules/_functoolsmodule.c
@@ -320,9 +320,9 @@
 else
 Py_INCREF(dict);
 
- Py_XSETREF(pto->fn, fn);
- Py_XSETREF(pto->args, fnargs);
- Py_XSETREF(pto->kw, kw);
+ Py_SETREF(pto->fn, fn);
+ Py_SETREF(pto->args, fnargs);
+ Py_SETREF(pto->kw, kw);
 Py_XSETREF(pto->dict, dict);
 Py_RETURN_NONE;
 }
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /