summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-12-16 09:11:12 +0000
committerGerrit Code Review <review@openstack.org>2021-12-16 09:11:12 +0000
commitb9fe504d07a1fb7f152a54e6ed59933a49a5371a (patch)
tree56b2904ae244091a775e7da16b8324e444029b94
parent5a1b5ae5ce3caca71b6139e3d2fa4e29086d5006 (diff)
parent796a8f5a9642a8ee0a455f59bbabe94e038fac4f (diff)
downloadpython-heatclient-b9fe504d07a1fb7f152a54e6ed59933a49a5371a.tar.gz
Merge "Replace deprecated import of ABCs from collections"
-rw-r--r--heatclient/common/template_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/heatclient/common/template_utils.py b/heatclient/common/template_utils.py
index 2c66f2b..ebabc04 100644
--- a/heatclient/common/template_utils.py
+++ b/heatclient/common/template_utils.py
@@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-import collections
+from collections import abc
from oslo_serialization import jsonutils
import six
from six.moves.urllib import error
@@ -203,10 +203,10 @@ def deep_update(old, new):
old = {}
for k, v in new.items():
- if isinstance(v, collections.Mapping):
+ if isinstance(v, abc.Mapping):
r = deep_update(old.get(k, {}), v)
old[k] = r
- elif v is None and isinstance(old.get(k), collections.Mapping):
+ elif v is None and isinstance(old.get(k), abc.Mapping):
# Don't override empty data, to work around yaml syntax issue
pass
else: