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:
parent
556f4f6aa6
commit
b6254398e7
@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
import collections
|
import collections.abc
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
@ -40,7 +40,7 @@ def _load_json(file_name):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
class BlockDeviceState(collections.MutableMapping):
|
class BlockDeviceState(collections.abc.MutableMapping):
|
||||||
"""The global state singleton
|
"""The global state singleton
|
||||||
|
|
||||||
An reference to an instance of this object is saved into nodes as
|
An reference to an instance of this object is saved into nodes as
|
||||||
|
Loading…
Reference in New Issue
Block a user