[Python-checkins] cpython: Closes #21124, #28337: Call PyType_Ready on unpackiter_type.
zach.ware
python-checkins at python.org
Tue Oct 4 02:25:02 EDT 2016
https://hg.python.org/cpython/rev/c4eb211fb38b
changeset: 104270:c4eb211fb38b
user: Zachary Ware <zachary.ware at gmail.com>
date: Tue Oct 04 01:20:21 2016 -0500
summary:
Closes #21124, #28337: Call PyType_Ready on unpackiter_type.
Patch by Masayuki Yamamoto.
files:
Modules/_struct.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Modules/_struct.c b/Modules/_struct.c
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -2301,6 +2301,9 @@
if (PyType_Ready(&PyStructType) < 0)
return NULL;
+ if (PyType_Ready(&unpackiter_type) < 0)
+ return NULL;
+
/* Check endian and swap in faster functions */
{
const formatdef *native = native_table;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list