summaryrefslogtreecommitdiffstats
path: root/Doc/partparse.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1996-10-10 20:09:56 (GMT)
committerFred Drake <fdrake@acm.org>1996-10-10 20:09:56 (GMT)
commit11b6d24da04bdfe287cff1faae5ab24e26aa1993 (patch)
tree5ce39bb907873521ce225f344626656d4926db27 /Doc/partparse.py
parent43e6661d252a5f72fefdae8570aa97071c1a630d (diff)
downloadcpython-11b6d24da04bdfe287cff1faae5ab24e26aa1993.zip
cpython-11b6d24da04bdfe287cff1faae5ab24e26aa1993.tar.gz
cpython-11b6d24da04bdfe287cff1faae5ab24e26aa1993.tar.bz2
(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.
Diffstat (limited to 'Doc/partparse.py')
-rw-r--r--Doc/partparse.py8
1 files changed, 4 insertions, 4 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