From: Joshua May Date: Sat, 14 Sep 2019 01:40:17 +0000 (-0700) Subject: Generators in Python 3 have a native `next()`, not a property! X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=851b7748a99500d2eeb8bed41f05a0e25c0dfe64;p=sirius.git Generators in Python 3 have a native `next()`, not a property! --- 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')