$ python -W default -c 'import editor; editor.get_editor()'
/Users/alex/my-project/venv/lib/python3.10/site-packages/editor.py:11: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.spawn import find_executable
This line seems to trigger a deprecation warning on Python 3.10. This happens both for the latest released version (
1.0.4) as well as the latestmaster.Minimal working example
Impact
pytesttest suite. Explanation:DeprecationWarningsare silenced by default butpytestshows them anyway. Projects that useeditorget warnings in their test output.