From 9f5532d91f73423e7f8bc77cc229eba4f643cd05 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 18 Jun 2024 17:43:16 -0700 Subject: [PATCH] formatting --- jc/parsers/mount.py | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) 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)