Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acc8754

Browse files
committed
(partparse.py): Small change by Sjoerd to improve handle of X11 extension
documentation.
1 parent 9c5dc29 commit acc8754

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/partparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ def do_funcdesc(length, buf, pp, i):
10541054
idxsi = hist.indexsubitem # words
10551055
command = ''
10561056
cat_class = ''
1057-
if idxsi and idxsi[-1] in ('method', 'protocol'):
1057+
if idxsi and idxsi[-1] in ('method', 'protocol', 'attribute'):
10581058
command = 'defmethod'
10591059
cat_class = string.join(idxsi[:-1])
10601060
elif len(idxsi) == 2 and idxsi[1] == 'function':

Doc/tools/partparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ def do_funcdesc(length, buf, pp, i):
10541054
idxsi = hist.indexsubitem # words
10551055
command = ''
10561056
cat_class = ''
1057-
if idxsi and idxsi[-1] in ('method', 'protocol'):
1057+
if idxsi and idxsi[-1] in ('method', 'protocol', 'attribute'):
10581058
command = 'defmethod'
10591059
cat_class = string.join(idxsi[:-1])
10601060
elif len(idxsi) == 2 and idxsi[1] == 'function':

0 commit comments

Comments
 (0)