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.