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

@ -138,15 +138,16 @@ def _linux_parse(data):
pattern = re.compile( pattern = re.compile(
r''' r'''
(?P<filesystem>.*) (?P<filesystem>.*)
\son\s \son\s
(?P<mount_point>.*?) (?P<mount_point>.*?)
\stype\s \stype\s
(?P<type>\S+) (?P<type>\S+)
\s+ \s+
\((?P<options>.*?)\) \((?P<options>.*?)\)
\s*''', \s*
re.VERBOSE) ''', re.VERBOSE
)
mymatch = pattern.match(entry) mymatch = pattern.match(entry)
groups = mymatch.groupdict() groups = mymatch.groupdict()
@ -225,7 +226,4 @@ def parse(data, raw=False, quiet=False):
else: else:
raw_output = _linux_parse(cleandata) raw_output = _linux_parse(cleandata)
if raw: return raw_output if raw else _process(raw_output)
return raw_output
else:
return _process(raw_output)