mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
(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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user