From 55d75e10f32e192396880cdf80a073fa3f58d73a Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 8 Nov 2014 13:01:01 -0500 Subject: [PATCH] Add *args, **kw to WebSocketHandler.open. This matches the default implementations of get/post/put/etc. Closes #1242 --- tornado/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/websocket.py b/tornado/websocket.py index d960b0e40..5c762adb6 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -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` -- 2.47.3