From f028b666acf73f395e01ab22da5100b5202e74ea Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 23 Dec 2021 18:24:25 +0100 Subject: Make sure our use of websockets package is forwards compatible It seems that between version 8 and 10 of the websockets package, a redesign of the modules hierarchy was performed. In version 8, when importing "websockets", we would end up with a lot of extra things imported in the websockets namespace. For instance: * websockets.exceptions * websockets.server These extra are no longer imported in recent versions. Therefore, we have to be more explicit when importing features from the websockets package. Signed-off-by: Olivier Gayot --- swiftstory/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swiftstory/client.py') diff --git a/swiftstory/client.py b/swiftstory/client.py index 52957c2..527c9c6 100644 --- a/swiftstory/client.py +++ b/swiftstory/client.py @@ -2,7 +2,7 @@ import asyncio import logging from typing import Optional -import websockets +import websockets.exceptions from swiftstory.game import Game from swiftstory.exception import WrongAction, UnsupportedLanguage, JoinError -- cgit v1.2.3