From e249267ff931b945583f43705c0efe3d7f7faab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20R=C3=B8sdal?= Date: Wed, 8 Mar 2017 21:20:32 +0100 Subject: [PATCH] Make compression options argument optional. --- tornado/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/websocket.py b/tornado/websocket.py index 78549c61..8364a871 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -689,7 +689,7 @@ class WebSocketProtocol13(WebSocketProtocol): else: raise ValueError("unsupported extension %r", ext) - def _get_compressor_options(self, side, agreed_parameters, compression_options): + def _get_compressor_options(self, side, agreed_parameters, compression_options=None): """Converts a websocket agreed_parameters set to keyword arguments for our compressor objects. """