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

formatting

This commit is contained in:
Kelly Brazil
2024-06-18 17:43:16 -07:00
parent c68c919024
commit 9f5532d91f

View File

@ -145,8 +145,9 @@ def _linux_parse(data):
(?P<type>\S+)
\s+
\((?P<options>.*?)\)
\s*''',
re.VERBOSE)
\s*
''', re.VERBOSE
)
mymatch = pattern.match(entry)
groups = mymatch.groupdict()
@ -225,7 +226,4 @@ def parse(data, raw=False, quiet=False):
else:
raw_output = _linux_parse(cleandata)
if raw:
return raw_output
else:
return _process(raw_output)
return raw_output if raw else _process(raw_output)