From 04a1ff2ca7873d55cdbc831e521f3d4892074d98 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 14 Nov 2019 16:36:00 -0800 Subject: [PATCH] pep8 fixes --- jc/parsers/history.py | 8 ++++---- jc/parsers/ifconfig.py | 2 +- jc/parsers/iptables.py | 6 +++--- jc/parsers/jobs.py | 6 +++--- jc/parsers/ls.py | 8 ++++---- jc/parsers/lsblk.py | 10 +++++----- jc/parsers/lsmod.py | 8 ++++---- jc/parsers/lsof.py | 8 ++++---- 8 files changed, 28 insertions(+), 28 deletions(-) diff --git a/jc/parsers/history.py b/jc/parsers/history.py index bd6f56d8..b7f28743 100644 --- a/jc/parsers/history.py +++ b/jc/parsers/history.py @@ -43,13 +43,13 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: dictionary structured data with the following schema: - + [ { "line": string, @@ -74,7 +74,7 @@ def parse(data, raw=False, quiet=False): Main text parsing function Parameters: - + data: (string) text data to parse raw: (boolean) output preprocessed JSON if True quiet: (boolean) suppress warning messages if True @@ -83,7 +83,7 @@ def parse(data, raw=False, quiet=False): dictionary raw or processed structured data """ - + # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] diff --git a/jc/parsers/ifconfig.py b/jc/parsers/ifconfig.py index c03da7a4..0ec74ac8 100644 --- a/jc/parsers/ifconfig.py +++ b/jc/parsers/ifconfig.py @@ -128,7 +128,7 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: diff --git a/jc/parsers/iptables.py b/jc/parsers/iptables.py index db53e755..bba207d6 100644 --- a/jc/parsers/iptables.py +++ b/jc/parsers/iptables.py @@ -133,7 +133,7 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: @@ -208,7 +208,7 @@ def parse(data, raw=False, quiet=False): Main text parsing function Parameters: - + data: (string) text data to parse raw: (boolean) output preprocessed JSON if True quiet: (boolean) suppress warning messages if True @@ -217,7 +217,7 @@ def parse(data, raw=False, quiet=False): dictionary raw or processed structured data """ - + # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux'] diff --git a/jc/parsers/jobs.py b/jc/parsers/jobs.py index 22d7c672..0dff592c 100644 --- a/jc/parsers/jobs.py +++ b/jc/parsers/jobs.py @@ -76,7 +76,7 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: @@ -110,7 +110,7 @@ def parse(data, raw=False, quiet=False): Main text parsing function Parameters: - + data: (string) text data to parse raw: (boolean) output preprocessed JSON if True quiet: (boolean) suppress warning messages if True @@ -119,7 +119,7 @@ def parse(data, raw=False, quiet=False): dictionary raw or processed structured data """ - + # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] diff --git a/jc/parsers/ls.py b/jc/parsers/ls.py index 110454ac..1d40e1fd 100644 --- a/jc/parsers/ls.py +++ b/jc/parsers/ls.py @@ -143,13 +143,13 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: dictionary structured data with the following schema: - + [ { "filename": string, @@ -181,7 +181,7 @@ def parse(data, raw=False, quiet=False): Main text parsing function Parameters: - + data: (string) text data to parse raw: (boolean) output preprocessed JSON if True quiet: (boolean) suppress warning messages if True @@ -190,7 +190,7 @@ def parse(data, raw=False, quiet=False): dictionary raw or processed structured data """ - + # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] diff --git a/jc/parsers/lsblk.py b/jc/parsers/lsblk.py index d60ed30f..e0de3efe 100644 --- a/jc/parsers/lsblk.py +++ b/jc/parsers/lsblk.py @@ -215,13 +215,13 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: dictionary structured data with the following schema: - + [ { "name": string, @@ -289,14 +289,14 @@ def process(proc_data): entry[key] = None return proc_data - + def parse(data, raw=False, quiet=False): """ Main text parsing function Parameters: - + data: (string) text data to parse raw: (boolean) output preprocessed JSON if True quiet: (boolean) suppress warning messages if True @@ -305,7 +305,7 @@ def parse(data, raw=False, quiet=False): dictionary raw or processed structured data """ - + # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux'] diff --git a/jc/parsers/lsmod.py b/jc/parsers/lsmod.py index 409f6c14..169523c7 100644 --- a/jc/parsers/lsmod.py +++ b/jc/parsers/lsmod.py @@ -105,13 +105,13 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: dictionary structured data with the following schema: - + [ { "module": string, @@ -142,7 +142,7 @@ def parse(data, raw=False, quiet=False): Main text parsing function Parameters: - + data: (string) text data to parse raw: (boolean) output preprocessed JSON if True quiet: (boolean) suppress warning messages if True @@ -151,7 +151,7 @@ def parse(data, raw=False, quiet=False): dictionary raw or processed structured data """ - + # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux'] diff --git a/jc/parsers/lsof.py b/jc/parsers/lsof.py index 78f0011e..b92f8c28 100644 --- a/jc/parsers/lsof.py +++ b/jc/parsers/lsof.py @@ -96,13 +96,13 @@ def process(proc_data): Final processing to conform to the schema. Parameters: - + proc_data: (dictionary) raw structured data to process Returns: dictionary structured data with the following schema: - + [ { "command": string, @@ -136,7 +136,7 @@ def parse(data, raw=False, quiet=False): Main text parsing function Parameters: - + data: (string) text data to parse raw: (boolean) output preprocessed JSON if True quiet: (boolean) suppress warning messages if True @@ -145,7 +145,7 @@ def parse(data, raw=False, quiet=False): dictionary raw or processed structured data """ - + # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux']