summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1996-10-14 16:20:42 (GMT)
committerFred Drake <fdrake@acm.org>1996-10-14 16:20:42 (GMT)
commitacc875403128e0ff900df3ab468d24fd6dd3dcde (patch)
tree8c916be978ba1f54b6ff5656d0571ee3fb981085
parent9c5dc29c3d1d5dc18bd7a4a2cd63c6e8abd031ea (diff)
downloadcpython-acc875403128e0ff900df3ab468d24fd6dd3dcde.zip
cpython-acc875403128e0ff900df3ab468d24fd6dd3dcde.tar.gz
cpython-acc875403128e0ff900df3ab468d24fd6dd3dcde.tar.bz2
(partparse.py): Small change by Sjoerd to improve handle of X11 extension
documentation.
-rw-r--r--Doc/partparse.py2
-rw-r--r--Doc/tools/partparse.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/partparse.py b/Doc/partparse.py
index 81d559d..ea519b6 100644
--- a/Doc/partparse.py
+++ b/Doc/partparse.py
@@ -1054,7 +1054,7 @@ def do_funcdesc(length, buf, pp, i):
idxsi = hist.indexsubitem # words
command = ''
cat_class = ''
- if idxsi and idxsi[-1] in ('method', 'protocol'):
+ if idxsi and idxsi[-1] in ('method', 'protocol', 'attribute'):
command = 'defmethod'
cat_class = string.join(idxsi[:-1])
elif len(idxsi) == 2 and idxsi[1] == 'function':
diff --git a/Doc/tools/partparse.py b/Doc/tools/partparse.py
index 81d559d..ea519b6 100644
--- a/Doc/tools/partparse.py
+++ b/Doc/tools/partparse.py
@@ -1054,7 +1054,7 @@ def do_funcdesc(length, buf, pp, i):
idxsi = hist.indexsubitem # words
command = ''
cat_class = ''
- if idxsi and idxsi[-1] in ('method', 'protocol'):
+ if idxsi and idxsi[-1] in ('method', 'protocol', 'attribute'):
command = 'defmethod'
cat_class = string.join(idxsi[:-1])
elif len(idxsi) == 2 and idxsi[1] == 'function':