Kaydet (Commit) 11b6d24d authored tarafından 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.
üst 43e6661d
......@@ -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
......
......@@ -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
......
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