From d8d9adbce96cf132504d0cd9bd64a2ada72875cd Mon Sep 17 00:00:00 2001 From: Eugene Ilin Date: Sun, 16 Jan 2022 09:15:09 +0300 Subject: [PATCH] Fix compatibility with Python 3.10 diff --git a/cacheman/cachewrap.py b/cacheman/cachewrap.py index 060a93d..a8bc2fc 100644 --- a/cacheman/cachewrap.py +++ b/cacheman/cachewrap.py @@ -1,4 +1,8 @@ -from collections import MutableMapping +try: + from collections import MutableMapping +except ImportError: + from collections.abc import MutableMapping + from past.builtins import basestring from .registers import *