From: Fred Drake Date: Thu, 10 Oct 1996 20:09:56 +0000 (+0000) Subject: (partparse.py): Small fix to do_datadesc(): in some odd cases the name of X-Git-Tag: v1.4~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11b6d24da04bdfe287cff1faae5ab24e26aa1993;p=thirdparty%2FPython%2Fcpython.git (partparse.py): Small fix to do_datadesc(): in some odd cases the name of data item was omitted, which also affected the indentation of the description. --- diff --git a/Doc/partparse.py b/Doc/partparse.py index 73ca34623d71..81d559d75c29 100644 --- a/Doc/partparse.py +++ b/Doc/partparse.py @@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i): command = 'defcv' cat_class = 'data' class_class = string.join(idxsi[2:]) - - if not command: - return length, i - #raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *) + else: + command = 'defcv' + cat_class = 'data' + class_class = string.join(idxsi) ch.chtype = chunk_type[CSLINE] ch.data = command diff --git a/Doc/tools/partparse.py b/Doc/tools/partparse.py index 73ca34623d71..81d559d75c29 100644 --- a/Doc/tools/partparse.py +++ b/Doc/tools/partparse.py @@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i): command = 'defcv' cat_class = 'data' class_class = string.join(idxsi[2:]) - - if not command: - return length, i - #raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *) + else: + command = 'defcv' + cat_class = 'data' + class_class = string.join(idxsi) ch.chtype = chunk_type[CSLINE] ch.data = command