Skip to content

Commit c772272

Browse files
committed
refractor changes
1 parent 468c92a commit c772272

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

splunklib/searchcommands/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import re
2121
import sys
2222
import warnings
23-
import urllib
23+
import urllib.parse
2424
from io import TextIOWrapper, StringIO
2525
from collections import deque, namedtuple
2626
from collections import OrderedDict

tests/testlib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
# Run the test suite on the SDK without installing it.
2626
sys.path.insert(0, '../')
2727

28-
import splunklib.client as client
2928
from time import sleep
3029
from datetime import datetime, timedelta
3130

@@ -168,7 +167,7 @@ def install_app_from_collection(self, name):
168167
self.service.post("apps/local", **kwargs)
169168
except client.HTTPError as he:
170169
if he.status == 400:
171-
raise IOError("App %s not found in app collection" % name)
170+
raise IOError(f"App {name} not found in app collection")
172171
if self.service.restart_required:
173172
self.service.restart(120)
174173
self.installedApps.append(name)

0 commit comments

Comments
 (0)