From 8c7b3193d131411f8766508fc27b2a6589bba1f2 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 25 Oct 2019 10:28:19 -0700 Subject: [PATCH] documentation change --- jc/parsers/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/history.py b/jc/parsers/history.py index a272c236..33dd19b8 100644 --- a/jc/parsers/history.py +++ b/jc/parsers/history.py @@ -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