asyncore and asynchat may be removed from python 3.11 stdlib
There's a discussion on the Python dev mailing list about removing asyncore and asynchat from Python 3.11:
https://mail.python.org/archives/list/[email protected]/thread/LZOOLX5EKOITW55TW7JQYKLXJUPCAJB4/#LVFBHVNV3INGKVVRONVRIA3Q6JIYXMZM
pyftpdlib would need to be migrated to asyncio (https://github.com/giampaolo/pyftpdlib/pull/310) or ship with a copy of asyncore and asynchat to continue to work if these modules are removed from the stdlib.
Yep. I'd say we can just copy latest version of both modules into pyftpdlib directory (pyftpdlib/_asyncore.py and pyftpdlib/_asynchat.py) and import them if we're on python 3.
Sounds like a good plan :)
Hi! Totally agree. I've got already deprecation warnings on Python 3.10.2 :
venv/lib/python3.10/site-packages/pyftpdlib/handlers.py:5
/home/akozyreva/projects/......./pyftpdlib/handlers.py:5: DeprecationWarning: The asynchat module is deprecated. The recommended replacement is asyncio
import asynchat