Merged requested to merge fix-import-python-3-5 into develop
Fix #1148 (closed) and #1147 (closed) XXX
This Merge Request includes:
A changelog fragment (cf https://docs.funkwhale.audio/contributing.html#changelog-management)
This MR fixes compatibility with Python < 3.6. The
os.scandir() method didn't receive context support until 3.6, so users of Debian 9 (mostly Yunohost users) cannot run the script as of version 0.21 as seen in the above issues. Since we are supporting 3.5 until version 1.0, this should probably be fixed for 0.21.1.
This has been tested on my Yunohost server running Debian 9, Python 3.5.