code style reformatting using black
This commit is contained in:
parent
4127bcffd0
commit
744cb0c503
1 changed files with 21394 additions and 10488 deletions
|
|
@ -22,7 +22,7 @@
|
|||
from importlib import import_module
|
||||
|
||||
|
||||
def bridge(name, module_path='sat.bridge'):
|
||||
def bridge(name, module_path="sat.bridge"):
|
||||
"""Import bridge module
|
||||
|
||||
@param module_path(str): path of the module to import
|
||||
|
|
@ -30,10 +30,10 @@ def bridge(name, module_path='sat.bridge'):
|
|||
@return (module, None): imported module or None if nothing is found
|
||||
"""
|
||||
try:
|
||||
bridge_module = import_module(module_path + '.' + name)
|
||||
bridge_module = import_module(module_path + "." + name)
|
||||
except ImportError:
|
||||
try:
|
||||
bridge_module = import_module(module_path + '.' + name + '_bridge')
|
||||
bridge_module = import_module(module_path + "." + name + "_bridge")
|
||||
except ImportError:
|
||||
bridge_module = None
|
||||
return bridge_module
|
||||
|
|
|
|||
Loading…
Reference in a new issue