canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
33 stars 38 forks source link

hotsos/cli: replace deprecated importlib.resources.path with files() #854

Closed xmkg closed 6 months ago

xmkg commented 6 months ago

the said function is deprecated in python 3.12 and will be removed. the new equivalent function is files(). replaced resources.path() in hotsos/cli/get_repo_info with files() and also updated the unit test.

xmkg commented 6 months ago

files() is not included in 3.8 python API, so dropping this for now.