mirror of https://github.com/zulip/zulip.git
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:
parent
4354386e69
commit
5c806fbd52
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue