python: import MutableMapping from collections.abc

Old-style is deprecated and will be removed in Python 3.8.
parent 2a9c7de5
......@@ -5,7 +5,7 @@
import posixpath
import logging
import os
import collections
import collections.abc
from augeas import Augeas
......@@ -122,7 +122,7 @@ class AugeasWrapper:
yield AugeasNode(self._aug, matched_path)
class AugeasNode(collections.MutableMapping):
class AugeasNode(collections.abc.MutableMapping):
"""One Augeas tree node with dict-like interface."""
def __init__(self, aug, path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment