]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Closes #21124, #28337: Call PyType_Ready on unpackiter_type.
authorZachary Ware <zachary.ware@gmail.com>
Tue, 4 Oct 2016 06:20:21 +0000 (01:20 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Tue, 4 Oct 2016 06:20:21 +0000 (01:20 -0500)
Patch by Masayuki Yamamoto.

Modules/_struct.c

index 9d48691c8a96334efe20cb05eaba8d2c8524d980..1d7a935ac8c49a493060b7b2749c107463095161 100644 (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;