Skip to content

Commit

Permalink
Import MutableMapping from collections.abc
Browse files Browse the repository at this point in the history
Python 3.3 and above moved the abstract base classes to their own
module under collections, collections.abc. Import from that location,
falling back if required for Python 3.2.

Fixes blaze#29
  • Loading branch information
s-t-e-v-e-n-k committed Jan 31, 2022
1 parent 2e67241 commit 768d01d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chest/core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from collections import MutableMapping
try:
from collections.abc import MutableMapping
except ImportError: # pragma: no cover
from collections import MutableMapping # pragma: no cover
from functools import partial
from threading import Lock
from contextlib import contextmanager
Expand Down

0 comments on commit 768d01d

Please sign in to comment.