Closes #21124, #28337: Call PyType_Ready on unpackiter_type.

Patch by Masayuki Yamamoto.
This commit is contained in:
Zachary Ware 2016-10-04 01:20:21 -05:00
parent b74034351f
commit 99f11b48cd
1 changed files with 3 additions and 0 deletions

View File

@ -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;