diff --git a/plugins/plugin_utils/base/cli_parser.py b/plugins/plugin_utils/base/cli_parser.py index 3433e64ef..7fbdd0be3 100644 --- a/plugins/plugin_utils/base/cli_parser.py +++ b/plugins/plugin_utils/base/cli_parser.py @@ -1,6 +1,7 @@ """ The base class for cli_parsers """ + from __future__ import absolute_import, division, print_function diff --git a/plugins/plugin_utils/base/validate.py b/plugins/plugin_utils/base/validate.py index 9e8828070..a38aeb41c 100644 --- a/plugins/plugin_utils/base/validate.py +++ b/plugins/plugin_utils/base/validate.py @@ -1,6 +1,7 @@ """ The base class for validator """ + from __future__ import absolute_import, division, print_function @@ -181,10 +182,10 @@ def _load_validator(engine, data, criteria, plugin_vars=None, cls_name="Validate return validator, result except Exception as exc: result["failed"] = True - result[ - "msg" - ] = "For engine '{engine}' error loading the corresponding validate plugin: {err}".format( - engine=engine, - err=to_native(exc), + result["msg"] = ( + "For engine '{engine}' error loading the corresponding validate plugin: {err}".format( + engine=engine, + err=to_native(exc), + ) ) return None, result diff --git a/plugins/sub_plugins/cli_parser/json_parser.py b/plugins/sub_plugins/cli_parser/json_parser.py index b0c515900..b2db24caf 100644 --- a/plugins/sub_plugins/cli_parser/json_parser.py +++ b/plugins/sub_plugins/cli_parser/json_parser.py @@ -3,6 +3,7 @@ This is the json parser for use with the cli_parse module and action plugin """ + from __future__ import absolute_import, division, print_function diff --git a/plugins/sub_plugins/cli_parser/textfsm_parser.py b/plugins/sub_plugins/cli_parser/textfsm_parser.py index 188465cd5..f6e710d63 100644 --- a/plugins/sub_plugins/cli_parser/textfsm_parser.py +++ b/plugins/sub_plugins/cli_parser/textfsm_parser.py @@ -4,6 +4,7 @@ This is the textfsm parser for use with the cli_parse module and action plugin https://github.com/google/textfsm """ + from __future__ import absolute_import, division, print_function diff --git a/plugins/sub_plugins/cli_parser/ttp_parser.py b/plugins/sub_plugins/cli_parser/ttp_parser.py index f8d9c7004..e52a466d4 100644 --- a/plugins/sub_plugins/cli_parser/ttp_parser.py +++ b/plugins/sub_plugins/cli_parser/ttp_parser.py @@ -4,6 +4,7 @@ This is the ttp parser for use with the cli_parse module and action plugin https://github.com/dmulyalin/ttp """ + from __future__ import absolute_import, division, print_function diff --git a/plugins/sub_plugins/cli_parser/xml_parser.py b/plugins/sub_plugins/cli_parser/xml_parser.py index 6e532013b..36e082351 100644 --- a/plugins/sub_plugins/cli_parser/xml_parser.py +++ b/plugins/sub_plugins/cli_parser/xml_parser.py @@ -4,6 +4,7 @@ This is the xml parser for use with the cli_parse module and action plugin https://github.com/martinblech/xmltodict """ + from __future__ import absolute_import, division, print_function