@@ -82,7 +82,7 @@ def __init__(
8282 host = None ,
8383 port = None ,
8484 realm = None ,
85- ** context
85+ ** context ,
8686 ):
8787 self ._name = name
8888 self ._conf = conf
@@ -112,7 +112,7 @@ def _cred_mgr(self):
112112 scheme = self ._scheme ,
113113 host = self ._host ,
114114 port = self ._port ,
115- ** self ._context
115+ ** self ._context ,
116116 )
117117
118118 return self ._cred_manager
@@ -222,12 +222,12 @@ def get(self, stanza_name, only_current_app=False):
222222 raise
223223
224224 raise ConfStanzaNotExistException (
225- "Stanza: {} does not exist in {}.conf" . format ( stanza_name , self . _name )
225+ f "Stanza: { stanza_name } does not exist in { self . _name } .conf"
226226 )
227227
228228 if len (stanza_mgrs ) == 0 :
229229 raise ConfStanzaNotExistException (
230- "Stanza: {} does not exist in {}.conf" . format ( stanza_name , self . _name )
230+ f "Stanza: { stanza_name } does not exist in { self . _name } .conf"
231231 )
232232
233233 stanza = self ._decrypt_stanza (stanza_mgrs [0 ].name , stanza_mgrs [0 ].content )
@@ -257,7 +257,7 @@ def get_all(self, only_current_app=False):
257257 """
258258
259259 if only_current_app :
260- stanza_mgrs = self ._conf .list (search = "eai:acl.app={}" . format ( self ._app ) )
260+ stanza_mgrs = self ._conf .list (search = f "eai:acl.app={ self ._app } " )
261261 else :
262262 stanza_mgrs = self ._conf .list ()
263263 res = {}
@@ -337,7 +337,7 @@ def delete(self, stanza_name):
337337 "Delete stanza: %s error: %s." , stanza_name , traceback .format_exc ()
338338 )
339339 raise ConfStanzaNotExistException (
340- "Stanza: {} does not exist in {}.conf" . format ( stanza_name , self . _name )
340+ f "Stanza: { stanza_name } does not exist in { self . _name } .conf"
341341 )
342342
343343 @retry (exceptions = [binding .HTTPError ])
@@ -405,7 +405,7 @@ def __init__(
405405 host = None ,
406406 port = None ,
407407 realm = None ,
408- ** context
408+ ** context ,
409409 ):
410410 self ._session_key = session_key
411411 self ._app = app
@@ -421,7 +421,7 @@ def __init__(
421421 scheme = self ._scheme ,
422422 host = self ._host ,
423423 port = self ._port ,
424- ** self ._context
424+ ** self ._context ,
425425 )
426426 self ._confs = None
427427 self ._realm = realm
@@ -462,7 +462,7 @@ def get_conf(self, name, refresh=False):
462462 self ._host ,
463463 self ._port ,
464464 self ._realm ,
465- ** self ._context
465+ ** self ._context ,
466466 )
467467
468468 @retry (exceptions = [binding .HTTPError ])
@@ -489,5 +489,5 @@ def create_conf(self, name):
489489 self ._host ,
490490 self ._port ,
491491 self ._realm ,
492- ** self ._context
492+ ** self ._context ,
493493 )
0 commit comments