From: Fred Drake Date: Mon, 14 Oct 1996 16:20:42 +0000 (+0000) Subject: (partparse.py): Small change by Sjoerd to improve handle of X11 extension X-Git-Tag: v1.4~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acc875403128e0ff900df3ab468d24fd6dd3dcde;p=thirdparty%2FPython%2Fcpython.git (partparse.py): Small change by Sjoerd to improve handle of X11 extension documentation. --- diff --git a/Doc/partparse.py b/Doc/partparse.py index 81d559d75c29..ea519b66d859 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 81d559d75c29..ea519b66d859 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':