1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

formatting

This commit is contained in:
Kelly Brazil
2019-10-25 10:22:23 -07:00
parent 57d0ab2ed7
commit 0897c96ef3

View File

@ -86,9 +86,11 @@ def parse(data):
# find column value of last character of each header
header_row = cleandata.pop(0)
headers = header_row.split()
# clean up 'SIZE/OFF' header
# even though forward slash in a key is valid json, it can make things difficult
headers = ['SIZE_OFF' if x == 'SIZE/OFF' else x for x in headers]
header_spec = []
for i, h in enumerate(headers):