summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-18 06:44:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-18 06:44:03 (GMT)
commitcfdfbb4d3c39ee1e728aa80da55c1f25d00be4d1 (patch)
tree18d17fd813accf0b6e6e9427f22ba372a7f8e78b /Python
parent75a25867ab96f1fe8a4295775fbcbb171bde693b (diff)
downloadcpython-cfdfbb4d3c39ee1e728aa80da55c1f25d00be4d1.zip
cpython-cfdfbb4d3c39ee1e728aa80da55c1f25d00be4d1.tar.gz
cpython-cfdfbb4d3c39ee1e728aa80da55c1f25d00be4d1.tar.bz2
Issue #27342: Replaced some Py_XDECREFs with Py_DECREFs.
Patch by Xiang Zhang.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 0637a2d..7d35cdb 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2711,10 +2711,10 @@ _PyBuiltin_Init(void)
SETBUILTIN("zip", &PyZip_Type);
debug = PyBool_FromLong(Py_OptimizeFlag == 0);
if (PyDict_SetItemString(dict, "__debug__", debug) < 0) {
- Py_XDECREF(debug);
+ Py_DECREF(debug);
return NULL;
}
- Py_XDECREF(debug);
+ Py_DECREF(debug);
return mod;
#undef ADD_TO_ALL