We do not want to overload the list() type because if we do, we turn this function into a recursive one, which results in an exception because set() cannot be concatenated with str ('/')

This commit is contained in:
Yoram Hekma 2017-01-11 08:52:31 +01:00
parent cfd82d1631
commit 9d9de67219
2 changed files with 2 additions and 2 deletions

View file

@ -206,7 +206,7 @@ class Cache(object):
Raises an exception if cache driver detected an error accessing data
in the cache backend (auth, permissions, etc).
'''
fun = '{0}.{1}'.format(self.driver, 'list')
fun = '{0}.{1}'.format(self.driver, 'getlist')
return self.modules[fun](bank)
def contains(self, bank, key=None):

View file

@ -129,7 +129,7 @@ def flush(bank, key=None):
)
def list(bank):
def getlist(bank):
'''
Return an iterable object containing all entries stored in the specified bank.
'''