]> granicus.if.org Git - python/commitdiff
(partparse.py): Small change by Sjoerd to improve handle of X11 extension
authorFred Drake <fdrake@acm.org>
Mon, 14 Oct 1996 16:20:42 +0000 (16:20 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 14 Oct 1996 16:20:42 +0000 (16:20 +0000)
documentation.

Doc/partparse.py
Doc/tools/partparse.py

index 81d559d75c299789f76f76bc6928543023af829d..ea519b66d859c74dbdc636750dca02b96129047d 100644 (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':
index 81d559d75c299789f76f76bc6928543023af829d..ea519b66d859c74dbdc636750dca02b96129047d 100644 (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':