From 26712b8fd92f1146102248cac1c92cb344620eff Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sat, 20 Jun 2020 00:47:09 +0200 Subject: [PATCH] Remove the PyType_Type assignments to _Type objects Newer docs (since 3.5, which is what Travis tests) don't have this anymore, only tp_new setting. tp_new is set directly in the type objects, so it looks like this is not needed anymore. And it should fix nightly testing, hopefully. --- acl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/acl.c b/acl.c index a774627..187aad8 100644 --- a/acl.c +++ b/acl.c @@ -1793,16 +1793,13 @@ PyInit_posix1e(void) { PyObject *m, *d; - Py_TYPE(&ACL_Type) = &PyType_Type; if(PyType_Ready(&ACL_Type) < 0) return NULL; #ifdef HAVE_LEVEL2 - Py_TYPE(&Entry_Type) = &PyType_Type; if(PyType_Ready(&Entry_Type) < 0) return NULL; - Py_TYPE(&Permset_Type) = &PyType_Type; if(PyType_Ready(&Permset_Type) < 0) return NULL; #endif -- 2.39.2