diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2016-10-04 06:20:21 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2016-10-04 06:20:21 (GMT) |
commit | 99f11b48cd66fafb65773d41a77a0a011ad04a96 (patch) | |
tree | 0733ac9c004feb969980d3e1e2afacec1a918dc1 /Modules/_struct.c | |
parent | b74034351f1a54ab107a77e39f656bbb2f86dcd4 (diff) | |
download | cpython-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.c | 3 |
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; |