diff options
author | Thomas Kemmer <tkemmer@computer.org> | 2020-12-09 22:32:23 +0100 |
---|---|---|
committer | Thomas Kemmer <tkemmer@computer.org> | 2020-12-09 23:38:17 +0100 |
commit | 6d2692fcb697984fdae53ee38fb3dd61fb3dc27d (patch) | |
tree | a85e96ec63f0181ceadd7809aa4b48c12ab3896a | |
parent | 986d815af6d8ed7c9f93404036dcee58ebf67765 (diff) | |
download | cachetools-6d2692fcb697984fdae53ee38fb3dd61fb3dc27d.tar.gz |
Prepare v4.2.0.
-rw-r--r-- | CHANGELOG.rst | 15 | ||||
-rw-r--r-- | cachetools/fifo.py | 3 |
2 files changed, 16 insertions, 2 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index eb28e16..f93956a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,18 @@ +v4.2.0 (UNRELEASED) +=================== + +- Add FIFO cache implementation. + +- Add MRU cache implementation. + +- Improve behavior of decorators in case of race conditions. + +- Improve documentation regarding mutability of caches values and use + of key functions with decorators. + +- Officially support Python 3.9. + + v4.1.1 (2020-06-28) =================== diff --git a/cachetools/fifo.py b/cachetools/fifo.py index 38ddca1..9f254f1 100644 --- a/cachetools/fifo.py +++ b/cachetools/fifo.py @@ -26,7 +26,6 @@ class FIFOCache(Cache): try: key = next(iter(self.__order)) except StopIteration: - msg = '%s is empty' % self.__class__.__name__ - raise KeyError(msg) from None + raise KeyError('%s is empty' % type(self).__name__) from None else: return (key, self.pop(key)) |