Skip to content

Commit 2ab5f31

Browse files
committed
Code comments
1 parent a9fcc80 commit 2ab5f31

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

bolt/bolt/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from .cli import cli
22

3+
# Make the CLI available as `python -m bolt`
34
if __name__ == "__main__":
45
cli()

bolt/bolt/wsgi.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
from bolt.internal.handlers.wsgi import WSGIHandler
33

44

5-
def get_wsgi_application():
6-
"""
7-
The public interface to Bolt's WSGI support. Return a WSGI callable.
8-
9-
Avoids making bolt.internal.handlers.WSGIHandler a public API, in case the
10-
internal WSGI implementation changes or moves in the future.
11-
"""
5+
def _get_wsgi_application():
126
bolt.runtime.setup()
137
return WSGIHandler()
148

159

16-
app = get_wsgi_application()
10+
# The default `bolt.wsgi:app` WSGI application
11+
app = _get_wsgi_application()

0 commit comments

Comments
 (0)