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 1659bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/fontmake/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ 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 1659bcc

Please sign in to comment.