summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-02-11 20:47:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-02-11 20:47:49 (GMT)
commit691680644351924a4c5d0bee445e52b1d7e0cf97 (patch)
treea6b499eb3bc5b45019558832a35e95a70b531908 /Tools
parentdafdd7f8caf8e5fa4cceaade2c7e8c0076085dad (diff)
downloadcpython-691680644351924a4c5d0bee445e52b1d7e0cf97.zip
cpython-691680644351924a4c5d0bee445e52b1d7e0cf97.tar.gz
cpython-691680644351924a4c5d0bee445e52b1d7e0cf97.tar.bz2
Issue #11135: Remove redundant doc field from PyType_Spec.
Reviewed by Georg Brandl.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/abitype.py3
1 files changed, 1 insertions, 2 deletions
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 @@ def make_slots(name, fields):
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 @@ def make_slots(name, fields):
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'])