tornado: Remove a misleading comment and reformat.

tornado.web.Application does not share any inheritance with Django at
all; it has a similar router interface, but tornado.web.Application is
not an instance of Django anything.

Refold the long lines that follow it.
This commit is contained in:
Alex Vandiver 2020-09-16 13:19:07 -07:00 committed by Tim Abbott
parent 4354386e69
commit 5c806fbd52
1 changed files with 7 additions and 6 deletions

View File

@ -23,9 +23,10 @@ def create_tornado_application() -> tornado.web.Application:
r"/api/v1/events/internal",
)
# Application is an instance of Django's standard wsgi handler.
return tornado.web.Application([(url, AsyncDjangoHandler) for url in urls],
debug=settings.DEBUG,
autoreload=False,
# Disable Tornado's own request logging, since we have our own
log_function=lambda x: None)
return tornado.web.Application(
[(url, AsyncDjangoHandler) for url in urls],
debug=settings.DEBUG,
autoreload=False,
# Disable Tornado's own request logging, since we have our own
log_function=lambda x: None
)