(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.
This commit is contained in:
Fred Drake 1996-10-10 20:09:56 +00:00
parent 43e6661d25
commit 11b6d24da0
2 changed files with 8 additions and 8 deletions

View 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

View 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