Skip to content

Commit

Permalink
Change to format string; does autoblack work?
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jun 23, 2021
1 parent aad5dce commit 8d55701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mathicsscript/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# This file is suitable for sourcing inside POSIX shell as
# well as importing into Python. That's why there is no
# space around "=" below.
# fmt: off
__version__="3.1.1.dev0" # noqa
2 changes: 1 addition & 1 deletion rst2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def clean_line(line):
for (regex, sub) in regex_subs:
line = regex.sub(sub, line)
except Exception as ex:
print("ERROR: %s, (line(%s)" % (regex, sub))
print(f"ERROR: {regex}, (line({sub})")
raise ex

return line
Expand Down

0 comments on commit 8d55701

Please sign in to comment.