We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adab735 commit 8a2fd85Copy full SHA for 8a2fd85
src/kubernetes_wsgi/__main__.py
@@ -16,12 +16,11 @@
16
17
18
def load_application(app_str: str) -> "WSGIApplication":
19
- func_name: Optional[str]
+ func_name = None # type: Optional[str]
20
if ":" in app_str:
21
mod_name, func_name = app_str.split(":", 1)
22
else:
23
mod_name = app_str
24
- func_name = None
25
mod = importlib.import_module(mod_name)
26
if func_name is None:
27
# Auto-detection behavior.
@@ -31,7 +30,7 @@ def load_application(app_str: str) -> "WSGIApplication":
31
30
if application is None:
32
raise ValueError(
33
"Unable to find WSGI application function automatically,"
34
- f"please specify {mod_name}:mywsgifunc"
+ "please specify {}:mywsgifunc".format(mod_name)
35
)
36
37
application = getattr(mod, func_name)
0 commit comments