amosbastian / understat

An asynchronous Python package for https://understat.com/.
MIT License
157 stars 30 forks source link

Updating README loop code #24

Closed tyketchum closed 2 years ago

tyketchum commented 2 years ago

Changing the README example from: loop = asyncio.get_event_loop() to: loop = asyncio.new_event_loop() asyncio.set_event_loop(loop)

amosbastian commented 2 years ago

Hey Ty, is this needed? I don't really use Python anymore so 😛

tyketchum commented 2 years ago

Hi Amos! It was needed for me, perhaps due to me being on Python 3.10? I could also be doing something wrong because I'm not great with Python - especially if nobody else had that issue. The "fix" worked (found on Google, of course), so I thought I'd pass along just in case it was helpful.

amosbastian commented 2 years ago

If it helped you it may help others so I don't mind merging it 😄 thanks for the contribution!