diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/partparse.py | 8 | ||||
-rw-r--r-- | 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 |