]> git.aero2k.de Git - sirius.git/commitdiff
Generators in Python 3 have a native `next()`, not a property!
authorJoshua May <notjosh@gmail.com>
Sat, 14 Sep 2019 01:40:17 +0000 (18:40 -0700)
committerJoshua May <notjosh@gmail.com>
Sat, 14 Sep 2019 01:40:17 +0000 (18:40 -0700)
sirius/protocol/protocol_loop.py

index 1143075093c5d074f84c5fa681c5e6f1cf218d50..36070c069bce03ceab2ca80406b28dd339744ea2 100644 (file)
@@ -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')