diff Doc/partparse.py @ 4397:890434d5bec2 legacy-trunk

(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.
author Fred Drake <fdrake@acm.org>
date Thu, 10 Oct 1996 20:09:56 +0000
parents adbe63317ccb
children a98011f0f9ca
line wrap: on
line diff
--- a/Doc/partparse.py	Thu Oct 10 19:12:47 1996 +0000
+++ b/Doc/partparse.py	Thu Oct 10 20:09:56 1996 +0000
@@ -1156,10 +1156,10 @@
 	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