From 5c806fbd52da5ddb006c24b922967e6468e73221 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 16 Sep 2020 13:19:07 -0700 Subject: [PATCH] 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. --- zerver/tornado/application.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/zerver/tornado/application.py b/zerver/tornado/application.py index 8563e9ea0c..a1fee11ac1 100644 --- a/zerver/tornado/application.py +++ b/zerver/tornado/application.py @@ -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 + )