Skip to content

Commit

Permalink
remove string f-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
b97pla committed Oct 11, 2023
1 parent af27f74 commit 5e24cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive_upload/handlers/dsmc_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ def dsmc_args(key_values):
:return: a string with arguments that should be appended to the dsmc command line
"""
args = [f"-{k}='{v}'" for k, v in key_values.items() if v is not None]
args.extend([f"-{k}" for k, v in key_values.items() if v is None])
args = ["-{}='{}'".format(k, v) for k, v in key_values.items() if v is not None]
args.extend(["-{}".format(k) for k, v in key_values.items() if v is None])
return " ".join(args)


Expand Down

0 comments on commit 5e24cae

Please sign in to comment.