Attempt fix again

This commit is contained in:
Nathan Thomas 2024-01-25 13:36:27 -08:00
parent 0b484d3a37
commit 396f19a063
1 changed files with 9 additions and 0 deletions

View File

@ -1,7 +1,9 @@
"""The clients that interact with the streaming service APIs."""
import asyncio
import contextlib
import logging
import sys
from abc import ABC, abstractmethod
import aiohttp
@ -15,6 +17,13 @@ DEFAULT_USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0"
)
if (
sys.version_info[0] == 3
and sys.version_info[1] >= 8
and sys.platform.startswith("win")
):
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
class Client(ABC):
source: str