Skip to content

Commit fe23c11

Browse files
Clara Brasseurceb8
authored andcommitted
pep8
1 parent 773478f commit fe23c11

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
@@ -248,15 +248,15 @@ def clear_cache(self):
248248

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

253253
def reset_cache_preferences(self):
254254
"""Resets cache preferences to default values"""
255255

256256
self.cache_location = os.path.join(
257257
conf.cache_location,
258258
self.__class__.__name__.split("Class")[0])
259-
259+
260260
self.use_cache = conf.use_cache
261261
self.cache_timeout = conf.default_cache_timeout
262262

@@ -329,12 +329,12 @@ def _request(self, method, url,
329329
timeout=timeout,
330330
json=json
331331
)
332-
332+
333333
if (cache is not False) and self.use_cache:
334334
cache = True
335335
else:
336336
cache = False
337-
337+
338338
if save:
339339
local_filename = url.split('/')[-1]
340340
if os.name == 'nt':

0 commit comments

Comments
 (0)