summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-10-04 06:20:21 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-10-04 06:20:21 (GMT)
commit99f11b48cd66fafb65773d41a77a0a011ad04a96 (patch)
tree0733ac9c004feb969980d3e1e2afacec1a918dc1 /Modules/_struct.c
parentb74034351f1a54ab107a77e39f656bbb2f86dcd4 (diff)
downloadcpython-99f11b48cd66fafb65773d41a77a0a011ad04a96.zip
cpython-99f11b48cd66fafb65773d41a77a0a011ad04a96.tar.gz
cpython-99f11b48cd66fafb65773d41a77a0a011ad04a96.tar.bz2
Closes #21124, #28337: Call PyType_Ready on unpackiter_type.
Patch by Masayuki Yamamoto.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c3
1 files changed, 3 insertions, 0 deletions
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;