Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11b6d24

Browse files
committed
(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.
1 parent 43e6661 commit 11b6d24

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Doc/partparse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i):
11561156
command = 'defcv'
11571157
cat_class = 'data'
11581158
class_class = string.join(idxsi[2:])
1159-
1160-
if not command:
1161-
return length, i
1162-
#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *)
1159+
else:
1160+
command = 'defcv'
1161+
cat_class = 'data'
1162+
class_class = string.join(idxsi)
11631163

11641164
ch.chtype = chunk_type[CSLINE]
11651165
ch.data = command

Doc/tools/partparse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i):
11561156
command = 'defcv'
11571157
cat_class = 'data'
11581158
class_class = string.join(idxsi[2:])
1159-
1160-
if not command:
1161-
return length, i
1162-
#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *)
1159+
else:
1160+
command = 'defcv'
1161+
cat_class = 'data'
1162+
class_class = string.join(idxsi)
11631163

11641164
ch.chtype = chunk_type[CSLINE]
11651165
ch.data = command

0 commit comments

Comments
 (0)