From b6254398e7b9805de74d0b4c6d892b680b2dce01 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 17 Jul 2021 01:02:01 +0900 Subject: [PATCH] Replace deprecated import of ABCs from collections ABCs in collections should be imported from collections.abc and direct import from collections is deprecated since Python 3.3. Change-Id: Idacff95cbb276eda0bc55de771ce6c701363c2e1 --- diskimage_builder/block_device/blockdevice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diskimage_builder/block_device/blockdevice.py b/diskimage_builder/block_device/blockdevice.py index 7fb938b2..8b859310 100644 --- a/diskimage_builder/block_device/blockdevice.py +++ b/diskimage_builder/block_device/blockdevice.py @@ -13,7 +13,7 @@ # under the License. import codecs -import collections +import collections.abc import json import logging import os @@ -40,7 +40,7 @@ def _load_json(file_name): return None -class BlockDeviceState(collections.MutableMapping): +class BlockDeviceState(collections.abc.MutableMapping): """The global state singleton An reference to an instance of this object is saved into nodes as