Commit b197be52 authored by Fred Drake's avatar Fred Drake

(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.
parent cc6b05f8
...@@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i): ...@@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i):
command = 'defcv' command = 'defcv'
cat_class = 'data' cat_class = 'data'
class_class = string.join(idxsi[2:]) class_class = string.join(idxsi[2:])
else:
if not command: command = 'defcv'
return length, i cat_class = 'data'
#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *) class_class = string.join(idxsi)
ch.chtype = chunk_type[CSLINE] ch.chtype = chunk_type[CSLINE]
ch.data = command ch.data = command
......
...@@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i): ...@@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i):
command = 'defcv' command = 'defcv'
cat_class = 'data' cat_class = 'data'
class_class = string.join(idxsi[2:]) class_class = string.join(idxsi[2:])
else:
if not command: command = 'defcv'
return length, i cat_class = 'data'
#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *) class_class = string.join(idxsi)
ch.chtype = chunk_type[CSLINE] ch.chtype = chunk_type[CSLINE]
ch.data = command ch.data = command
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment