Skip to content

Commit

Permalink
Use more efficient join for args2string (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi authored Oct 20, 2023
1 parent 2d64ffb commit 828aab6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions rclone_python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,8 @@


def args2string(args: List[str]) -> str:
out = ""

for item in args:
# separate flags/ named arguments by a space
out += f" {item}"

return out
# separate flags/ named arguments by a space
return " ".join(args)


def run_cmd(
Expand Down

0 comments on commit 828aab6

Please sign in to comment.