From 851b7748a99500d2eeb8bed41f05a0e25c0dfe64 Mon Sep 17 00:00:00 2001 From: Joshua May Date: Fri, 13 Sep 2019 18:40:17 -0700 Subject: [PATCH] Generators in Python 3 have a native `next()`, not a property! --- sirius/protocol/protocol_loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sirius/protocol/protocol_loop.py b/sirius/protocol/protocol_loop.py index 1143075..36070c0 100644 --- a/sirius/protocol/protocol_loop.py +++ b/sirius/protocol/protocol_loop.py @@ -123,7 +123,7 @@ def accept(ws): :param ws: A gevent websocket object. """ loop = _decoder_loop(ws) - power_on = loop.next() + power_on = next(loop) # stats & logging stats.inc('accepted.count') -- 2.47.3