diff --git a/src/antsibull_core/config.py b/src/antsibull_core/config.py index 1b401e9..6b4c143 100644 --- a/src/antsibull_core/config.py +++ b/src/antsibull_core/config.py @@ -52,7 +52,7 @@ def find_config_files(conf_files: Iterable[StrPath]) -> list[str]: config_files = [] for conf_path in paths: if os.path.exists(conf_path): - config_files.append(f"{conf_path}") + config_files.append(str(conf_path)) flog.fields(paths=config_files).info("Paths found") flog.debug("Leave") diff --git a/src/antsibull_core/tarball.py b/src/antsibull_core/tarball.py index 9b92cb5..f19058d 100644 --- a/src/antsibull_core/tarball.py +++ b/src/antsibull_core/tarball.py @@ -32,7 +32,7 @@ async def unpack_tarball(tarname: StrPath, destdir: StrPath) -> str: :returns: Toplevel of the unpacked directory structure. This will be a subdirectory of `destdir`. """ - tarname_str = f"{tarname}" + tarname_str = str(tarname) manifest = await async_log_run(["tar", "-xzvf", tarname_str, f"-C{destdir}"]) toplevel_dirs = [ filename