From 20b6e9fe912154eb03761887f7216325060487e7 Mon Sep 17 00:00:00 2001 From: GunWoo Choi Date: Tue, 24 Nov 2015 14:12:07 +0900 Subject: [PATCH] Use super() to call super "__init__()" Calling super method by Request.__init__(self) cannot handle MRO properly. --- tornado/websocket.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tornado/websocket.py b/tornado/websocket.py index 11e526687..f5e3dbd7f 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -128,8 +128,7 @@ class WebSocketHandler(tornado.web.RequestHandler): to accept it before the websocket connection will succeed. """ def __init__(self, application, request, **kwargs): - tornado.web.RequestHandler.__init__(self, application, request, - **kwargs) + super(WebSocketHandler, self).__init__(application, request, **kwargs) self.ws_connection = None self.close_code = None self.close_reason = None -- 2.47.2