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

Miss Islington (bot) webhook-mailer at python.org
Sat Feb 23 20:53:33 EST 2019


https://github.com/python/cpython/commit/8efa32888b6ab1b8420a4883167b68824faba4cc
commit: 8efa32888b6ab1b8420a4883167b68824faba4cc
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-02-23T17:53:28-08:00
summary:

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

(cherry picked from commit abe5922743f62e130c4dad2f637274c38d6b1e8b)

Co-authored-by: E. M. Bray <erik.m.bray at gmail.com>

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