Skip to content

Commit 016172d

Browse files
Fixing code style
1 parent dab2b98 commit 016172d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

astroquery/esa/xmm_newton/core.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ def download_data(self, observation_id, *, filename=None, verbose=False,
126126

127127
# get desired filename
128128
filename = self._create_filename(filename, observation_id, suffixes)
129-
129+
"""
130+
If prop we change the log level so that it is above 20, this is to stop a log.debug (line 431) in query.py.
131+
This debug reveals the url being sent which in turn reveals the users username and password
132+
"""
130133
if prop:
131-
"""
132-
Here we change the log level so that it is above 20, this is to stop a log.debug (line 431) in query.py.
133-
This debug reveals the url being sent which in turn reveals the users username and password
134-
"""
135134
previouslevel = log.getEffectiveLevel()
136135
log.setLevel(21)
137136
self._download_file(link, filename, head_safe=True, cache=cache)

0 commit comments

Comments
 (0)