Skip to content

Commit

Permalink
fix: issue 1615 - Switch formatting condition for dictionary (#1617)
Browse files Browse the repository at this point in the history
* Switch formatting condition for dictionary

* empty commit
  • Loading branch information
LarsStegemanGT committed May 2, 2022
1 parent 104cab9 commit 0771062
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snakemake/executors/common.py
Expand Up @@ -12,10 +12,10 @@ def format_cli_arg(flag, value, quote=True, skip=False):


def format_cli_pos_arg(value, quote=True):
if not_iterable(value):
if isinstance(value, dict):
return join_cli_args(repr(f"{key}={val}") for key, val in value.items())
elif not_iterable(value):
return repr(value)
elif isinstance(value, dict):
return join_cli_args(repr(f"{key}={val}") for key, val in value)
else:
return join_cli_args(repr(v) for v in value)

Expand Down

0 comments on commit 0771062

Please sign in to comment.