]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add **kwargs to WebSocketHandler.__init__
authorBen Darnell <ben@bendarnell.com>
Mon, 25 Apr 2011 06:13:13 +0000 (23:13 -0700)
committerBen Darnell <ben@bendarnell.com>
Mon, 25 Apr 2011 06:13:29 +0000 (23:13 -0700)
Closes #250.

tornado/websocket.py

index 8e43087655b52698b94928eecfc3dac018603460..14073bd478249a7ec25a27b628d8676261480fe9 100644 (file)
@@ -66,8 +66,9 @@ class WebSocketHandler(tornado.web.RequestHandler):
 
     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