diff --git a/bin.d/60-legacy/jpath.py b/bin.d/60-legacy/jpath.py index 8aa849f..fa882b5 100644 --- a/bin.d/60-legacy/jpath.py +++ b/bin.d/60-legacy/jpath.py @@ -1,6 +1,6 @@ -from jmespath.exceptions import ParseError, JMESPathError, UnknownFunctionError -from jmespath import functions import jmespath +from jmespath import functions +from jmespath.exceptions import JMESPathError, ParseError, UnknownFunctionError __version__ = "1.9.7" @@ -10,7 +10,6 @@ import splunk.Intersplunk as si - ERROR_FIELD = "_jmespath_error" diff --git a/bin.d/60-legacy/jsonformat.py b/bin.d/60-legacy/jsonformat.py index d24b401..b87cf90 100755 --- a/bin.d/60-legacy/jsonformat.py +++ b/bin.d/60-legacy/jsonformat.py @@ -5,15 +5,15 @@ __version__ = "1.9.7" -import os import ast -import sys import json +import os +import sys from functools import partial sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) # nopep8 -from splunklib.searchcommands import dispatch, StreamingCommand, Configuration, Option, validators +from splunklib.searchcommands import Configuration, Option, StreamingCommand, dispatch, validators def from_python(s):