From 9f34a851acf0cff92e5774c62cae5d172bec968d Mon Sep 17 00:00:00 2001 From: Lowell Alleman Date: Thu, 21 Sep 2023 21:13:54 -0400 Subject: [PATCH] pre-commit run -a --- bin.d/60-legacy/jpath.py | 5 ++--- bin.d/60-legacy/jsonformat.py | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) 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):