Skip to content

Commit

Permalink
fixup! pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 15, 2023
1 parent 45e7644 commit 85f87fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/pep517_backend/_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def _emit_opt_pairs(opt_pair):
flag, flag_value = opt_pair
flag_opt = '--{name!s}'.format(name=flag)
flag_opt = f'--{flag!s}'
if isinstance(flag_value, dict):
sub_pairs = flag_value.items()
else:
Expand All @@ -26,7 +26,7 @@ def get_cli_kwargs_from_config(kwargs_map):
def get_enabled_cli_flags_from_config(flags_map):
"""Make a list of enabled boolean flags from config."""
return [
'--{flag}'.format(flag=flag)
f'--{flag}'
for flag, is_enabled in flags_map.items()
if is_enabled
]
Expand Down

0 comments on commit 85f87fd

Please sign in to comment.