diff --git a/jc/parsers/mount.py b/jc/parsers/mount.py index 0d7b2f4b..9fe67558 100644 --- a/jc/parsers/mount.py +++ b/jc/parsers/mount.py @@ -138,15 +138,16 @@ def _linux_parse(data): pattern = re.compile( r''' - (?P.*) - \son\s - (?P.*?) - \stype\s - (?P\S+) - \s+ - \((?P.*?)\) - \s*''', - re.VERBOSE) + (?P.*) + \son\s + (?P.*?) + \stype\s + (?P\S+) + \s+ + \((?P.*?)\) + \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)