Merge pull request #38676 from yhekma/2016.11

Removed overloading of list()
This commit is contained in:
Mike Place 2017-01-14 22:42:12 -07:00 committed by GitHub
commit aae8b54860
3 changed files with 3 additions and 3 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.
'''

View file

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