1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

minor cleanup

This commit is contained in:
Kelly Brazil
2019-10-25 10:31:03 -07:00
parent 8c7b3193d1
commit 5b532b9b71

View File

@ -92,7 +92,6 @@ def parse(data):
headers = ['SIZE_OFF' if x == 'SIZE/OFF' else x for x in headers]
header_spec = []
for i, h in enumerate(headers):
# header tuple is (index, header_name, col)
header_spec.append((i, h, header_row.find(h) + len(h)))
@ -108,11 +107,11 @@ def parse(data):
index = spec[0]
header_name = spec[1]
col = spec[2]
col = spec[2] - 1
if header_name == 'COMMAND' or header_name == 'NAME':
continue
if entry[col - 1] == string.whitespace:
if entry[col] == string.whitespace:
temp_line.insert(index, None)
name = ' '.join(temp_line[9:])