1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-15 00:05:11 +02:00

formatting

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

View File

@ -138,15 +138,16 @@ def _linux_parse(data):
pattern = re.compile(
r'''
(?P<filesystem>.*)
\son\s
(?P<mount_point>.*?)
\stype\s
(?P<type>\S+)
\s+
\((?P<options>.*?)\)
\s*''',
re.VERBOSE)
(?P<filesystem>.*)
\son\s
(?P<mount_point>.*?)
\stype\s
(?P<type>\S+)
\s+
\((?P<options>.*?)\)
\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)