mirror of https://github.com/python/cpython
(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:
parent
43e6661d25
commit
11b6d24da0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue