python: import MutableMapping from

Old-style is deprecated and will be removed in Python 3.8.
parent 2a9c7de5
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import posixpath import posixpath
import logging import logging
import os import os
import collections import
from augeas import Augeas from augeas import Augeas
...@@ -122,7 +122,7 @@ class AugeasWrapper: ...@@ -122,7 +122,7 @@ class AugeasWrapper:
yield AugeasNode(self._aug, matched_path) yield AugeasNode(self._aug, matched_path)
class AugeasNode(collections.MutableMapping): class AugeasNode(
"""One Augeas tree node with dict-like interface.""" """One Augeas tree node with dict-like interface."""
def __init__(self, aug, path): 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