buckket / twtxt

Decentralised, minimalist microblogging service for hackers.
http://twtxt.readthedocs.org/en/stable/
MIT License
1.92k stars 79 forks source link

Doesn’t work with Python 3.11 #168

Closed gergelypolonkai closed 1 year ago

gergelypolonkai commented 2 years ago

There are some quirks used throughout the repo that doesn’t work with newer Python versions, like asyncio.coroutine:

Deprecated since version 3.8, will be removed in version 3.11: Use async def instead.

– Python3’s asyncio documentation

async def, on the other hand, works fine since Python 3.5 (doesn’t work with the other Python version configured in tox.ini, 3.4, though). But since even 3.5 is EOL for about 2 years now, i think it would be safe to move to this method.

buckket commented 1 year ago

Code now works with Python 3.10 and should also be compatible with 3.11.