From c7cd83a04352e3a1d835bf47bca160c1bc44bea7 Mon Sep 17 00:00:00 2001 From: Szymon Masternak <51755583+szymonmasternak@users.noreply.github.com> Date: Wed, 31 Jul 2019 17:13:50 +0100 Subject: [PATCH] Updated to work on Python 3.7 Async Variable Chnaged --- wia/stream_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wia/stream_client.py b/wia/stream_client.py index 33700ad..25c7327 100644 --- a/wia/stream_client.py +++ b/wia/stream_client.py @@ -17,7 +17,7 @@ def __init__(self): self.function_subscriptions = {} - def connect(self, async=True): + def connect(self, _async=True): self.__init__() self.client.username_pw_set(Wia().access_token, ' ') self.client.on_connect = self.on_connect @@ -26,7 +26,7 @@ def connect(self, async=True): self.client.on_unsubscribe = self.on_unsubscribe self.client.on_message = self.on_message self.client.connect(Wia().stream_config['host'], Wia().stream_config['port'], 60) - if async: + if _async: self.client.loop_start() self.connected = True time.sleep(1)