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
This commit is contained in:
Takashi Kajinami 2021-07-17 01:02:01 +09:00
parent 556f4f6aa6
commit b6254398e7
1 changed files with 2 additions and 2 deletions

View File

@ -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