From 0897c96ef3c180a1707e8f56c545f59b3a4e0672 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 25 Oct 2019 10:22:23 -0700 Subject: [PATCH] formatting --- jc/parsers/lsof.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jc/parsers/lsof.py b/jc/parsers/lsof.py index 382e801b..e1dedd5d 100644 --- a/jc/parsers/lsof.py +++ b/jc/parsers/lsof.py @@ -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):