Skip to content

Commit

Permalink
drop python f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zakandrewking committed Aug 22, 2019
1 parent 348495e commit a41b7a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion py/escher/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def match_in_index(name, index, kind):
raise Exception('Could not connect to the Escher server')
match = match_in_index(name, server_index(), kind)
if len(match) == 0:
raise Exception(f'Could not find the {kind} {name} on the server')
raise Exception('Could not find the {kind} {name} on the server'
.format(kind=kind, name=name))
org, name = match[0]
url = (
get_url(kind + '_download') +
Expand Down
3 changes: 2 additions & 1 deletion py/escher/tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def look_for_string(st, substring):
found = st.find(substring)
assert found > -1
except AssertionError:
raise AssertionError(f'Could not find\n\n{substring}\n\nin\n\n{st}')
raise AssertionError('Could not find\n\n{substring}\n\nin\n\n{st}'
.format(substring=substring, st=st))


def test_save_html(tmpdir):
Expand Down

0 comments on commit a41b7a9

Please sign in to comment.