From 11b6d24da04bdfe287cff1faae5ab24e26aa1993 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 10 Oct 1996 20:09:56 +0000 Subject: (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. --- Doc/partparse.py | 8 ++++---- Doc/tools/partparse.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Doc/partparse.py b/Doc/partparse.py index 73ca346..81d559d 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 73ca346..81d559d 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 -- cgit v0.12