mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
formatting
This commit is contained in:
@ -173,11 +173,12 @@ def process(proc_data):
|
||||
|
||||
return proc_data
|
||||
|
||||
|
||||
def post_parse(data):
|
||||
# remove empty items
|
||||
cleandata = []
|
||||
for ssid in data:
|
||||
ssid = { k : v for k, v in ssid.items() if v}
|
||||
ssid = {k: v for k, v in ssid.items() if v}
|
||||
cleandata.append(ssid)
|
||||
|
||||
# remove asterisks from begining of values
|
||||
@ -277,6 +278,7 @@ def post_parse(data):
|
||||
|
||||
return process(cleandata)
|
||||
|
||||
|
||||
def parse(data, raw=False, quiet=False):
|
||||
"""
|
||||
Main text parsing function
|
||||
|
Reference in New Issue
Block a user