mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
minor cleanup
This commit is contained in:
@ -92,7 +92,6 @@ def parse(data):
|
|||||||
headers = ['SIZE_OFF' if x == 'SIZE/OFF' else x for x in headers]
|
headers = ['SIZE_OFF' if x == 'SIZE/OFF' else x for x in headers]
|
||||||
|
|
||||||
header_spec = []
|
header_spec = []
|
||||||
|
|
||||||
for i, h in enumerate(headers):
|
for i, h in enumerate(headers):
|
||||||
# header tuple is (index, header_name, col)
|
# header tuple is (index, header_name, col)
|
||||||
header_spec.append((i, h, header_row.find(h) + len(h)))
|
header_spec.append((i, h, header_row.find(h) + len(h)))
|
||||||
@ -108,11 +107,11 @@ def parse(data):
|
|||||||
|
|
||||||
index = spec[0]
|
index = spec[0]
|
||||||
header_name = spec[1]
|
header_name = spec[1]
|
||||||
col = spec[2]
|
col = spec[2] - 1
|
||||||
|
|
||||||
if header_name == 'COMMAND' or header_name == 'NAME':
|
if header_name == 'COMMAND' or header_name == 'NAME':
|
||||||
continue
|
continue
|
||||||
if entry[col - 1] == string.whitespace:
|
if entry[col] == string.whitespace:
|
||||||
temp_line.insert(index, None)
|
temp_line.insert(index, None)
|
||||||
|
|
||||||
name = ' '.join(temp_line[9:])
|
name = ' '.join(temp_line[9:])
|
||||||
|
Reference in New Issue
Block a user