mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
python: Remove locally dead code.
These changes are all independent of each other; I just didn’t feel like making dozens of commits for them. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9afe6d0829
commit
4206e5f00b
@@ -90,7 +90,7 @@ else:
|
||||
manage_args = [f"--settings={settings_module}"]
|
||||
os.environ["DJANGO_SETTINGS_MODULE"] = settings_module
|
||||
|
||||
from scripts.lib.zulip_tools import CYAN, ENDC, FAIL
|
||||
from scripts.lib.zulip_tools import CYAN, ENDC
|
||||
|
||||
proxy_port = base_port
|
||||
django_port = base_port + 1
|
||||
@@ -310,15 +310,6 @@ class TornadoHandler(BaseHandler):
|
||||
target_port = tornado_port
|
||||
|
||||
|
||||
class ErrorHandler(BaseHandler):
|
||||
@web.asynchronous
|
||||
def prepare(self) -> None:
|
||||
print(FAIL + "Unexpected request: " + ENDC, self.request.path)
|
||||
self.set_status(500)
|
||||
self.write("path not supported")
|
||||
self.finish()
|
||||
|
||||
|
||||
class Application(web.Application):
|
||||
def __init__(self, enable_logging: bool = False) -> None:
|
||||
handlers = [
|
||||
@@ -334,10 +325,6 @@ class Application(web.Application):
|
||||
super().log_request(handler)
|
||||
|
||||
|
||||
def on_shutdown() -> None:
|
||||
IOLoop.instance().stop()
|
||||
|
||||
|
||||
def shutdown_handler(*args: Any, **kwargs: Any) -> None:
|
||||
io_loop = IOLoop.instance()
|
||||
if io_loop._callbacks:
|
||||
|
||||
Reference in New Issue
Block a user