File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 2020import re
2121import sys
2222import warnings
23- import urllib
23+ import urllib . parse
2424from io import TextIOWrapper , StringIO
2525from collections import deque , namedtuple
2626from collections import OrderedDict
Original file line number Diff line number Diff line change 2525# Run the test suite on the SDK without installing it.
2626sys .path .insert (0 , '../' )
2727
28- import splunklib .client as client
2928from time import sleep
3029from 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 )
You can’t perform that action at this time.
0 commit comments