Drop use of deprecated collections classes
These were moved in Python 3.3 and the aliases will be dropped in 3.10. Change-Id: I98985aef57ebe024e97e444ffd0d43ee2b88b332 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
bc9c70fd66
commit
51d7b465b5
@ -12,7 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import copy
|
||||
import functools
|
||||
|
||||
@ -116,7 +116,7 @@ class MockCollection(object):
|
||||
def find_one(self, spec_or_id=None, *args, **kwargs):
|
||||
if spec_or_id is None:
|
||||
spec_or_id = {}
|
||||
if not isinstance(spec_or_id, collections.Mapping):
|
||||
if not isinstance(spec_or_id, collections.abc.Mapping):
|
||||
spec_or_id = {'_id': spec_or_id}
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user