Skip to content

Commit 8a2fd85

Browse files
committed
🐛 Fix Python 3.5 compat.
1 parent adab735 commit 8a2fd85

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/kubernetes_wsgi/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616

1717

1818
def load_application(app_str: str) -> "WSGIApplication":
19-
func_name: Optional[str]
19+
func_name = None # type: Optional[str]
2020
if ":" in app_str:
2121
mod_name, func_name = app_str.split(":", 1)
2222
else:
2323
mod_name = app_str
24-
func_name = None
2524
mod = importlib.import_module(mod_name)
2625
if func_name is None:
2726
# Auto-detection behavior.
@@ -31,7 +30,7 @@ def load_application(app_str: str) -> "WSGIApplication":
3130
if application is None:
3231
raise ValueError(
3332
"Unable to find WSGI application function automatically,"
34-
f"please specify {mod_name}:mywsgifunc"
33+
"please specify {}:mywsgifunc".format(mod_name)
3534
)
3635
else:
3736
application = getattr(mod, func_name)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy