mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
formatting
This commit is contained in:
@ -146,13 +146,13 @@ def parse(data, raw=False, quiet=False):
|
|||||||
# modified output with _ prefix for attributes
|
# modified output with _ prefix for attributes
|
||||||
try:
|
try:
|
||||||
raw_output = xmltodict.parse(data,
|
raw_output = xmltodict.parse(data,
|
||||||
dict_constructor=dict,
|
dict_constructor=dict,
|
||||||
process_comments=True,
|
process_comments=True,
|
||||||
attr_prefix='_')
|
attr_prefix='_')
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
raw_output = xmltodict.parse(data,
|
raw_output = xmltodict.parse(data,
|
||||||
dict_constructor=dict,
|
dict_constructor=dict,
|
||||||
attr_prefix='_')
|
attr_prefix='_')
|
||||||
|
|
||||||
return raw_output
|
return raw_output
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user