diff options
author | Thomas Kemmer <tkemmer@computer.org> | 2019-01-27 22:42:39 +0100 |
---|---|---|
committer | Thomas Kemmer <tkemmer@computer.org> | 2019-01-29 21:14:16 +0100 |
commit | 9aac551118beb07c98c3004b159d06f171b1d09c (patch) | |
tree | 727e6a8fac737d633cd759f105d2b1c482e83a96 | |
parent | 4d1a68523ebc97a2ecf36cc29fdb9718c7dc053f (diff) | |
download | cachetools-9aac551118beb07c98c3004b159d06f171b1d09c.tar.gz |
Fix #124: Fix Python 3.8 compatibility issue.
-rw-r--r-- | cachetools/abc.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cachetools/abc.py b/cachetools/abc.py index b663d96..3bc43cc 100644 --- a/cachetools/abc.py +++ b/cachetools/abc.py @@ -1,10 +1,14 @@ from __future__ import absolute_import -import collections from abc import abstractmethod +try: + from collections.abc import MutableMapping +except ImportError: + from collections import MutableMapping -class DefaultMapping(collections.MutableMapping): + +class DefaultMapping(MutableMapping): __slots__ = () |