[Python-checkins] fix _abc.c compile error on Cygwin (GH-8445)

Inada Naoki webhook-mailer at python.org
Sat Feb 23 20:30:18 EST 2019


https://github.com/python/cpython/commit/abe5922743f62e130c4dad2f637274c38d6b1e8b
commit: abe5922743f62e130c4dad2f637274c38d6b1e8b
branch: master
author: E. M. Bray <erik.m.bray at gmail.com>
committer: Inada Naoki <methane at users.noreply.github.com>
date: 2019-02-24T10:30:14+09:00
summary:

fix _abc.c compile error on Cygwin (GH-8445)

files:
M Modules/_abc.c

diff --git a/Modules/_abc.c b/Modules/_abc.c
index 36c1757b5fd3..1fbf3a831007 100644
--- a/Modules/_abc.c
+++ b/Modules/_abc.c
@@ -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,



More information about the Python-checkins mailing list