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
changes/92/801092/1
Takashi Kajinami 1 year ago
parent 556f4f6aa6
commit b6254398e7
  1. 4
      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

Loading…
Cancel
Save