spl0k / supysonic

Supysonic is a Python implementation of the Subsonic server API.
https://supysonic.readthedocs.io
GNU Affero General Public License v3.0
259 stars 57 forks source link

Replace distutils.dir_util.remove_tree() by shutil.rmtree(). #255

Closed baldurmen closed 1 year ago

baldurmen commented 1 year ago

In Python 3.10 and 3.11, distutils has been formally marked as deprecated. Code that imports distutils will no longer work from Python 3.12.

I'm pretty sure distutils.dir_util.remove_tree() and shutil.rmtree() do the same exact same thing and this should fix the issue :)

codecov[bot] commented 1 year ago

Codecov Report

Merging #255 (4bc80bf) into master (abe0b79) will increase coverage by 0.02%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #255      +/-   ##
==========================================
+ Coverage   86.18%   86.21%   +0.02%     
==========================================
  Files          46       46              
  Lines        3794     3794              
==========================================
+ Hits         3270     3271       +1     
+ Misses        524      523       -1     

see 1 file with indirect coverage changes