Skip to content

Commit

Permalink
Wrap binary operator to newline.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrleeman committed Oct 17, 2018
1 parent 45f8c23 commit df908bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions siphon/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ def subset(self, service=None):
else:
raise RuntimeError('Subset access is not available for this dataset.')
elif service not in self.ncssServiceNames:
raise ValueError(service + ' is not a valid service for subset. Options are: ' +
', '.join(self.ncssServiceNames))
raise ValueError(service + ' is not a valid service for subset. Options are: '
+ ', '.join(self.ncssServiceNames))

return self.access_with_service(service)

Expand Down
7 changes: 4 additions & 3 deletions siphon/tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,10 @@ def test_simple_service_within_compound():
url = ('http://thredds-test.unidata.ucar.edu/thredds/catalog/noaaport/text/'
'tropical/atlantic/hdob/catalog.xml')
cat = TDSCatalog(url)
assert (cat.datasets[0].access_urls ==
{'HTTPServer': 'http://thredds-test.unidata.ucar.edu/thredds/fileServer/noaaport/'
'text/tropical/atlantic/hdob/High_density_obs_20170824.txt'})
assert (cat.datasets[0].access_urls
== {'HTTPServer': 'http://thredds-test.unidata.ucar.edu/thredds/'
'fileServer/noaaport/text/tropical/atlantic/hdob/''
'High_density_obs_20170824.txt'})


@recorder.use_cassette('rsmas_ramadda')
Expand Down

0 comments on commit df908bd

Please sign in to comment.