1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-06 22:32:54 +02:00

documentation change

This commit is contained in:
Kelly Brazil
2019-10-25 10:28:19 -07:00
parent 0897c96ef3
commit 8c7b3193d1

View File

@ -29,7 +29,7 @@ def parse(data):
for entry in cleandata:
try:
parsed_line = entry.split(maxsplit=1)
# prepend a alpha character n to be more json compliant
# prepend alpha character n to key so the resulting JSON is easier to work with
output['n' + parsed_line[0]] = parsed_line[1]
except IndexError:
# need to catch indexerror in case there is weird input from prior commands