Kaydet (Commit) acc87540 authored tarafından Fred Drake's avatar Fred Drake

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

	documentation.
üst 9c5dc29c
......@@ -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':
......
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment