Skip to content

Commit

Permalink
Fix DeprecationWarning: collections.MutableMapping
Browse files Browse the repository at this point in the history
DeprecationWarning: Using or importing the ABCs from 'collections'
instead of from 'collections.abc' is deprecated, and in 3.8 it will stop
working

There is no six.moves.collections.abc yet:
<benjaminp/six#155>
  • Loading branch information
spaceone committed Aug 15, 2020
1 parent 5950b32 commit f7d77d0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
import re
import errno
import time
from collections import MutableMapping
try:
from collections.abc import MutableMapping # Python 3.3+
except ImportError:
from collections import MutableMapping
import six
try:
from typing import overload, Any, Dict, IO, Iterator, List, NoReturn, Optional, Set, Tuple, Type, TypeVar, Union # noqa F401
Expand Down

0 comments on commit f7d77d0

Please sign in to comment.