From 99f11b48cd66fafb65773d41a77a0a011ad04a96 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Tue, 4 Oct 2016 01:20:21 -0500 Subject: Closes #21124, #28337: Call PyType_Ready on unpackiter_type. Patch by Masayuki Yamamoto. --- Modules/_struct.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/_struct.c b/Modules/_struct.c index 9d48691..1d7a935 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -2301,6 +2301,9 @@ PyInit__struct(void) 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; -- cgit v0.12