1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-17 01:32:37 +02:00

minor formatting

This commit is contained in:
Kelly Brazil
2020-02-04 11:18:32 -08:00
parent ab589ee3ed
commit d7f9707a15
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ def parse(data, raw=False, quiet=False):
if data:
ini = configparser.ConfigParser()
ini.read_string(data)
raw_output = {s:dict(ini.items(s)) for s in ini.sections()}
raw_output = {s: dict(ini.items(s)) for s in ini.sections()}
if raw:
return raw_output

View File

@ -126,8 +126,8 @@ def parse(data, raw=False, quiet=False):
jc.utils.compatibility(__name__, info.compatible)
raw_output = []
yaml = YAML(typ='safe')
for document in yaml.load_all(data):
raw_output.append(document)