summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1994-12-14 15:28:22 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>1994-12-14 15:28:22 (GMT)
commit1cfb6b8992393626a21325aa6d9b708684f770ac (patch)
treea26b6e3606be488d3fa17b9d7940bc5dc1df383a /Doc/tools
parent1dfb7d74a54982bce2ff33fe5804c9e4e3dc6ef1 (diff)
downloadcpython-1cfb6b8992393626a21325aa6d9b708684f770ac.zip
cpython-1cfb6b8992393626a21325aa6d9b708684f770ac.tar.gz
cpython-1cfb6b8992393626a21325aa6d9b708684f770ac.tar.bz2
Can't remember the reason for the change, but it was necessary. :-)
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/partparse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tools/partparse.py b/Doc/tools/partparse.py
index be9b1c8..a62d694 100644
--- a/Doc/tools/partparse.py
+++ b/Doc/tools/partparse.py
@@ -1080,7 +1080,7 @@ def do_funcdesc(length, buf, pp, i):
idxsi = hist.indexsubitem # words
command = ''
cat_class = ''
- if idxsi and idxsi[-1] == 'method':
+ if idxsi and idxsi[-1] in ('method', 'attribute'):
command = 'defmethod'
cat_class = string.join(idxsi[:-1])
elif len(idxsi) == 2 and idxsi[1] == 'function':
@@ -1170,10 +1170,10 @@ def do_datadesc(length, buf, pp, i):
command = ''
cat_class = ''
class_class = ''
- if len(idxsi) == 2 and idxsi[1] == 'attribute':
+ if idxsi[-1] == 'attribute':
command = 'defcv'
cat_class = 'attribute'
- class_class = idxsi[0]
+ class_class = string.join(idxsi[:-1])
elif len(idxsi) == 3 and idxsi[:2] == ['in', 'module']:
command = 'defcv'
cat_class = 'data'