]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add *args, **kw to WebSocketHandler.open.
authorBen Darnell <ben@bendarnell.com>
Sat, 8 Nov 2014 18:01:01 +0000 (13:01 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 8 Nov 2014 18:01:01 +0000 (13:01 -0500)
This matches the default implementations of get/post/put/etc.

Closes #1242

tornado/websocket.py

index d960b0e40faa04401b19a34f6e8dbf42ed4a25ce..5c762adb62bb5fed289e974497ba7fa0fb6eed61 100644 (file)
@@ -229,7 +229,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
         """
         return None
 
-    def open(self):
+    def open(self, *args, **kwargs):
         """Invoked when a new WebSocket is opened.
 
         The arguments to `open` are extracted from the `tornado.web.URLSpec`