(partparse.py): Small change by Sjoerd to improve handle of X11 extension

documentation.
This commit is contained in:
Fred Drake 1996-10-14 16:20:42 +00:00
parent 9c5dc29c3d
commit acc8754031
2 changed files with 2 additions and 2 deletions

View File

@ -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':

View File

@ -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':