Skip to content

Commit

Permalink
Merge pull request #317 from zakandrewking/python-3.5
Browse files Browse the repository at this point in the history
Support Python 3.5
  • Loading branch information
zakandrewking authored Aug 22, 2019
2 parents 5271f0d + 3a3ed29 commit c9a04dd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
dist: xenial
language: python
python:
- "3.5"
- "3.6"
- "3.7"
# Latest node
before_install:
Expand Down
5 changes: 3 additions & 2 deletions 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 Expand Up @@ -526,7 +527,7 @@ def __init__(
model: Model = None,
model_name: str = None,
model_json: str = None,
**kwargs,
**kwargs
) -> None:
# kwargs will instantiate the traitlets
super().__init__(**kwargs)
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
1 change: 1 addition & 0 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Visualization',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent'
Expand Down

0 comments on commit c9a04dd

Please sign in to comment.