Skip to content

Commit

Permalink
Always convert args to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
boehmseb committed Oct 7, 2023
1 parent 9774b15 commit 3047707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchbuild/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def __repr__(self) -> str:
if self._label:
repr_str = f"{self._label} {repr_str}"
if self._args:
repr_str += f" args={self._args}"
repr_str += f" args={[str(arg) for arg in self._args]}"
if self._env:
repr_str += f" env={self._env}"
if self._output:
Expand All @@ -634,7 +634,7 @@ def __repr__(self) -> str:

def __str__(self) -> str:
env_str = " ".join([f"{k}={str(v)}" for k, v in self._env.items()])
args_str = " ".join(self._args)
args_str = " ".join([str(arg) for arg in self._args])

command_str = f"{self._path}"
if env_str:
Expand Down

0 comments on commit 3047707

Please sign in to comment.