Skip to content

Commit 0d36664

Browse files
Clara Brasseurceb8
authored andcommitted
pep8
1 parent f72ec07 commit 0d36664

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

astroquery/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def _get_bibtex():
5252

5353
# Set up cache configuration
5454
class Conf(_config.ConfigNamespace):
55-
55+
5656
default_cache_timeout = _config.ConfigItem(
57-
86400, # 24 hours
57+
86400, # 24 hours
5858
'Astroquery-wide default cache timeout (seconds).'
5959
)
6060
cache_location = _config.ConfigItem(
@@ -66,4 +66,5 @@ class Conf(_config.ConfigNamespace):
6666
"Astroquery global cache usage, False turns off all caching."
6767
)
6868

69+
6970
conf = Conf()

astroquery/query.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,15 @@ def clear_cache(self):
246246

247247
cache_files = [x for x in os.listdir(self.cache_location) if x.endswith("pickle")]
248248
for fle in cache_files:
249-
os.remove(os.path.join(self.cache_location,fle))
249+
os.remove(os.path.join(self.cache_location, fle))
250250

251251
def reset_cache_preferences(self):
252252
"""Resets cache preferences to default values"""
253253

254254
self.cache_location = os.path.join(
255255
conf.cache_location,
256256
self.__class__.__name__.split("Class")[0])
257-
257+
258258
self.use_cache = conf.use_cache
259259
self.cache_timeout = conf.default_cache_timeout
260260

@@ -327,12 +327,12 @@ def _request(self, method, url,
327327
timeout=timeout,
328328
json=json
329329
)
330-
330+
331331
if (cache is not False) and self.use_cache:
332332
cache = True
333333
else:
334334
cache = False
335-
335+
336336
if save:
337337
local_filename = url.split('/')[-1]
338338
if os.name == 'nt':

0 commit comments

Comments
 (0)