From 2f53fccc50271dd4adb75cd0806b601924f201e6 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 3 May 2026 11:56:24 -0700 Subject: [PATCH] Correct lambda syntax To fix the error: ``` File ".../sockjs-protocol/sockjs-protocol.py", line 592 on_close = lambda(ws): self.assertFalse(True) ``` --- sockjs-protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sockjs-protocol.py b/sockjs-protocol.py index 5e8438e..6a825f3 100644 --- a/sockjs-protocol.py +++ b/sockjs-protocol.py @@ -545,7 +545,7 @@ def test_close(self): raise websocket.WebSocketConnectionClosedException ws.close() - # Verify WebSocket headers sanity. Server must support + # Verify WebSocket headers sanity. Server must support # Hybi-13 def test_headersSanity(self): for version in ['13']: @@ -589,7 +589,7 @@ def test_empty_frame(self): # correct to have two separate sessions sharing the same # `session_id` at the same time. def test_reuseSessionId(self): - on_close = lambda(ws): self.assertFalse(True) + on_close = lambda ws: self.assertFalse(True) ws_url = 'ws:' + base_url.split(':',1)[1] + \ '/000/' + str(uuid.uuid4()) + '/websocket'