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
30 stars 37 forks source link

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

Closed mustafakemalgilor closed 2 months ago

mustafakemalgilor commented 2 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.

mustafakemalgilor commented 2 months ago

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