Skip to content

Commit

Permalink
Convert using str().
Browse files Browse the repository at this point in the history
Co-authored-by: Maxwell G <[email protected]>
  • Loading branch information
felixfontein and gotmax23 authored Oct 11, 2023
1 parent 448a83f commit f91936b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/antsibull_core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/antsibull_core/tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f91936b

Please sign in to comment.