Closed leonsbane closed 3 weeks ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
This is dead code, only other mention of compare_version is it getting imported in the __init__.py
file for re-export.
Please delete the function and the relevant imports instead :smiley:
(amend and force-push your commit, or create a new PR if that is easier for you)
PEP 632 deprecates the distutils module.
The module was marked as deprecated in Python 3.10 and 3.11, and was eventually removed in Python 3.12.
The PEP advises to replace the usage of
distutils.version
withpackaging.version
, theLooseVersion
functionality being provided via itsparse
method.This replacement advice is detailed in the PEP under 'Migration Advice'