Skip to content

Commit

Permalink
Fix inconsistent tabs and spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Becky Smith committed Oct 9, 2018
1 parent 9739764 commit 40cb448
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions yas3fs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,8 @@ def process_message(self, messages):
self.invalidate_cache(path)
elif c[1] == 'md':
if c[2]:
self.delete_cache(c[2])
self.delete_cache(c[3])
self.delete_cache(c[2])
self.delete_cache(c[3])
elif c[1] == 'reset':
if len(c) <= 2 or not c[2] or c[2] == '/':
with self.cache.lock:
Expand Down Expand Up @@ -1931,14 +1931,14 @@ def check_data(self, path):
logger.debug("check_data '%s'" % (path))
with self.cache.get_lock(path):
#-- jazzl0ver: had to add path checking due to untracable /by me/ cache leaking (workaround for issue #174)
data = self.cache.get(path, 'data')
data = self.cache.get(path, 'data')
if data and not os.path.exists(self.cache.get_cache_filename(path)):
logger.debug("Cache leak found for '%s', cleaning up..." % (path))
self.cache.delete(path)
logger.debug("Cache leak found for '%s', cleaning up..." % (path))
self.cache.delete(path)
with self.cache.lock and self.cache.new_locks[path]:
del self.cache.new_locks[path]
del self.cache.unused_locks[path]
data = self.cache.get(path, 'data')
del self.cache.unused_locks[path]
data = self.cache.get(path, 'data')
if not data or data.has('new'):
k = self.get_key(path)
if not k:
Expand Down

0 comments on commit 40cb448

Please sign in to comment.