Import MutableMapping from the correct Python module
Change-Id: Ifb66fe22bc607b13f5c4756d3b93f5e8206c33e3
This commit is contained in:
parent
f44d07956a
commit
a00dab7bcf
@ -4,7 +4,7 @@
|
||||
.. _`SQLite`: http://www.sqlite.org/
|
||||
"""
|
||||
try: # Python 3
|
||||
from collections import MutableMapping as DictMixin
|
||||
from collections.abc import MutableMapping as DictMixin
|
||||
except ImportError: # Python 2
|
||||
from UserDict import DictMixin
|
||||
from copy import copy
|
||||
|
@ -3,7 +3,7 @@
|
||||
"""
|
||||
import abc
|
||||
try: # Python 3
|
||||
from collections import MutableMapping as DictMixin
|
||||
from collections.abc import MutableMapping as DictMixin
|
||||
except ImportError: # Python 2
|
||||
from UserDict import DictMixin
|
||||
import warnings
|
||||
|
Loading…
Reference in New Issue
Block a user