Fix regression introduced in 4ac969c8a8

This commit is contained in:
Pierre LALET 2018-03-16 08:17:06 +01:00
parent 8d8aa2e95d
commit 4f7b6e5f36
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class CacheInstance(dict, object):
return [k for k in six.iterkeys(self.__dict__) if t0-self._timetable[k] < self.timeout]
def values(self):
if self.timeout is None:
return six.values(self)
return list(six.itervalues(self))
t0=time.time()
return [v for (k,v) in six.iteritems(self.__dict__) if t0-self._timetable[k] < self.timeout]
def __len__(self):