Skip to content
Snippets Groups Projects
Commit 8f609e51 authored by David Douard's avatar David Douard
Browse files

Import Mapping from collections.abc instead of collections

to fix a deprecationg warning.
parent 81f9fbc5
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
"""Merkle tree data structure"""
import abc
import collections
from collections.abc import Mapping
from typing import Iterator, List, Set
......@@ -66,7 +66,7 @@ def deep_update(left, right):
"""
for key, rvalue in right.items():
if isinstance(rvalue, collections.Mapping):
if isinstance(rvalue, Mapping):
new_lvalue = deep_update(left.get(key, {}), rvalue)
left[key] = new_lvalue
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment