]> granicus.if.org Git - python/commitdiff
genobject: Remove unnecessary tp_free slots from aiter_wrapper and coro_wrapper
authorYury Selivanov <yury@magic.io>
Wed, 9 Nov 2016 00:19:28 +0000 (19:19 -0500)
committerYury Selivanov <yury@magic.io>
Wed, 9 Nov 2016 00:19:28 +0000 (19:19 -0500)
Objects/genobject.c

index 0d5d54fdbafcd4bbc87b7615122ca6906c3e0b51..d403598181abd4c85facb9afd624b08168847004 100644 (file)
@@ -1031,7 +1031,7 @@ PyTypeObject _PyCoroWrapper_Type = {
     0,                                          /* tp_init */
     0,                                          /* tp_alloc */
     0,                                          /* tp_new */
-    PyObject_Del,                               /* tp_free */
+    0,                                          /* tp_free */
 };
 
 PyObject *
@@ -1116,7 +1116,7 @@ PyTypeObject _PyAIterWrapper_Type = {
     0,                                          /* tp_init */
     0,                                          /* tp_alloc */
     0,                                          /* tp_new */
-    PyObject_Del,                               /* tp_free */
+    0,                                          /* tp_free */
 };