commit | 99f11b48cd66fafb65773d41a77a0a011ad04a96 | [log] [tgz] |
---|---|---|
author | Zachary Ware <zachary.ware@gmail.com> | Tue Oct 04 01:20:21 2016 -0500 |
committer | Zachary Ware <zachary.ware@gmail.com> | Tue Oct 04 01:20:21 2016 -0500 |
tree | 0733ac9c004feb969980d3e1e2afacec1a918dc1 | |
parent | b74034351f1a54ab107a77e39f656bbb2f86dcd4 [diff] [blame] |
Closes #21124, #28337: Call PyType_Ready on unpackiter_type. Patch by Masayuki Yamamoto.
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 @@ 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;