From b8faecd76fdbc09218657a53d5a37f56f02b16c7 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 24 Apr 2011 23:13:13 -0700 Subject: [PATCH] Add **kwargs to WebSocketHandler.__init__ Closes #250. --- tornado/websocket.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tornado/websocket.py b/tornado/websocket.py index 8e43087655..14073bd478 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -66,8 +66,9 @@ def on_close(self): This script pops up an alert box that says "You said: Hello, world". """ - def __init__(self, application, request): - tornado.web.RequestHandler.__init__(self, application, request) + def __init__(self, application, request, **kwargs): + tornado.web.RequestHandler.__init__(self, application, request, + **kwargs) self.stream = request.connection.stream self.client_terminated = False self._waiting = None