Issue #11135: Remove redundant doc field from PyType_Spec.
Reviewed by Georg Brandl.
diff --git a/Tools/scripts/abitype.py b/Tools/scripts/abitype.py
index afb104b..e35ef6a 100644
--- a/Tools/scripts/abitype.py
+++ b/Tools/scripts/abitype.py
@@ -162,7 +162,7 @@
res = []
res.append('static PyType_Slot %s_slots[] = {' % name)
# defaults for spec
- spec = { 'tp_doc':'NULL', 'tp_itemsize':'0' }
+ spec = { 'tp_itemsize':'0' }
for i, val in enumerate(fields):
if val.endswith('0'):
continue
@@ -174,7 +174,6 @@
res.append('};')
res.append('static PyType_Spec %s_spec = {' % name)
res.append(' %s,' % spec['tp_name'])
- res.append(' %s,' % spec['tp_doc'])
res.append(' %s,' % spec['tp_basicsize'])
res.append(' %s,' % spec['tp_itemsize'])
res.append(' %s,' % spec['tp_flags'])