summaryrefslogtreecommitdiff
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-10 18:05:40 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-10 18:05:40 +0300
commit57a01d3a0ee20ee9eea69b658c6bac0f39541625 (patch)
treecdeb89c231bbf902b59832b1b1f6dbe9a775292e /Modules/zipimport.c
parente0805cf10ea84b44a13ad5649267edba7cb83ee9 (diff)
downloadcpython-git-57a01d3a0ee20ee9eea69b658c6bac0f39541625.tar.gz
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 3abb9f06a9..e840271bfd 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -155,7 +155,7 @@ zipimporter_init(ZipImporter *self, PyObject *args, PyObject *kwds)
tmp = PyUnicode_FromFormat("%U%c", self->prefix, SEP);
if (tmp == NULL)
goto error;
- Py_XSETREF(self->prefix, tmp);
+ Py_SETREF(self->prefix, tmp);
}
}
else