Skip to content

Commit

Permalink
__main__: use .format() instead of %s to appease pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed May 13, 2019
1 parent c6a0137 commit d4f5ae3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/fontmake/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def exclude_args(parser, args, excluded_args, target, positive=True):
if argname not in args:
continue
if bool(args[argname]) is positive:
optname = "--%s%s" % ("" if positive else "no-", argname.replace("_", "-"))
optname = "--{}{}".format(
"" if positive else "no-", argname.replace("_", "-")
)
parser.error(msg % (optname, target))
del args[argname]

Expand Down

0 comments on commit d4f5ae3

Please sign in to comment.