Skip to content

Commit fb3359a

Browse files
Reformated file to comply with pycodestyle
1 parent 4750b3b commit fb3359a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ esa.jwst
3333

3434
Service fixes and enhancements
3535
------------------------------
36+
esa.xmm_newton
37+
^^^^^^^^^^^^^^
38+
39+
- Add option to download proprietary data [#2251]
3640

3741
eso
3842
^^^

astroquery/esa/xmm_newton/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def _request_link(self, link, cache):
306306
return params
307307

308308
def _get_username_and_password(self, credentials_file):
309-
if credentials_file != None:
309+
if credentials_file is not None:
310310
self.configuration.read(credentials_file)
311311
username = self.configuration.get('user', 'username')
312312
password = self.configuration.get('user', 'password')

astroquery/esa/xmm_newton/tests/test_xmm_newton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,4 +560,4 @@ def test_create_filename_None(self):
560560
def test_create_filename_Not_None(self):
561561
xsa = XMMNewtonClass(self.get_dummy_tap_handler())
562562
filename = xsa._create_filename("Test", "0560181401", ['.tar', '.gz'])
563-
assert filename == "Test.tar.gz"
563+
assert filename == "Test.tar.gz"

astroquery/esa/xmm_newton/tests/test_xmm_newton_remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from ..core import XMMNewtonClass
2222
from ..tests.dummy_tap_handler import DummyXMMNewtonTapHandler
2323

24+
2425
class TestXMMNewtonRemote():
2526
_files = {
2627
"0405320501": {
@@ -221,7 +222,6 @@ def test_download_proprietary_data_without_credentials(self):
221222
xsa = XMMNewtonClass(self.get_dummy_tap_handler())
222223
xsa.download_data(**parameters)
223224

224-
225225
@pytest.mark.remote_data
226226
def test_get_epic_spectra(self):
227227
_tarname = "tarfile.tar"
@@ -233,4 +233,4 @@ def test_get_epic_spectra(self):
233233
xsa = XMMNewtonClass(self.get_dummy_tap_handler())
234234
res = xsa.get_epic_spectra(_tarname, _source_number,
235235
instrument=[])
236-
assert len(res) == 0
236+
assert len(res) == 0

0 commit comments

Comments
 (0)