]> granicus.if.org Git - python/commitdiff
fix _abc.c compile error on Cygwin (GH-8445)
authorE. M. Bray <erik.m.bray@gmail.com>
Sun, 24 Feb 2019 01:30:14 +0000 (02:30 +0100)
committerInada Naoki <methane@users.noreply.github.com>
Sun, 24 Feb 2019 01:30:14 +0000 (10:30 +0900)
Modules/_abc.c

index 36c1757b5fd3c8bedd9f0854d63b06f3673f8c97..1fbf3a831007bd677212f2f64c1ef063d5c8b11c 100644 (file)
@@ -66,7 +66,7 @@ PyDoc_STRVAR(abc_data_doc,
 "Internal state held by ABC machinery.");
 
 static PyTypeObject _abc_data_type = {
-    PyVarObject_HEAD_INIT(&PyType_Type, 0)
+    PyVarObject_HEAD_INIT(NULL, 0)
     "_abc_data",                        /*tp_name*/
     sizeof(_abc_data),                  /*tp_basicsize*/
     .tp_dealloc = (destructor)abc_data_dealloc,