aboutsummaryrefslogtreecommitdiff
path: root/cachetools/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'cachetools/cache.py')
-rw-r--r--cachetools/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cachetools/cache.py b/cachetools/cache.py
index ed3d268..0c81d06 100644
--- a/cachetools/cache.py
+++ b/cachetools/cache.py
@@ -32,7 +32,7 @@ class Cache(MutableMapping):
self.__maxsize = maxsize
def __repr__(self):
- return '%s(%r, maxsize=%r, currsize=%r)' % (
+ return "%s(%r, maxsize=%r, currsize=%r)" % (
self.__class__.__name__,
list(self.__data.items()),
self.__maxsize,
@@ -49,7 +49,7 @@ class Cache(MutableMapping):
maxsize = self.__maxsize
size = self.getsizeof(value)
if size > maxsize:
- raise ValueError('value too large')
+ raise ValueError("value too large")
if key not in self.__data or self.__size[key] < size:
while self.__currsize + size > maxsize:
self.popitem()