]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(partparse.py): Small fix to do_datadesc(): in some odd cases the name of
authorFred Drake <fdrake@acm.org>
Thu, 10 Oct 1996 20:09:56 +0000 (20:09 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 10 Oct 1996 20:09:56 +0000 (20:09 +0000)
data item was omitted, which also affected the indentation of the
description.

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

index 73ca34623d7132e41179ee26f08756485704ede7..81d559d75c299789f76f76bc6928543023af829d 100644 (file)
@@ -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
index 73ca34623d7132e41179ee26f08756485704ede7..81d559d75c299789f76f76bc6928543023af829d 100644 (file)
@@ -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