Update more deprecated python imports.

Signed-off-by: Max von Forell <max@vonforell.de>
This commit is contained in:
Max von Forell 2021-12-26 15:40:05 +01:00
parent 38b853b66a
commit 127463a2c5
2 changed files with 3 additions and 3 deletions

View file

@ -144,7 +144,7 @@ def reraise_attribute_error(func):
return _
class ConfigSettings(collections.Mapping):
class ConfigSettings(collections.abc.Mapping):
"""Interface for configuration settings.
This is the main interface to the configuration.
@ -190,7 +190,7 @@ class ConfigSettings(collections.Mapping):
will result in exceptions being raised.
"""
class ConfigSection(collections.MutableMapping, object):
class ConfigSection(collections.abc.MutableMapping, object):
"""Represents an individual config section."""
def __init__(self, config, name, settings):
object.__setattr__(self, '_config', config)

View file

@ -152,7 +152,7 @@ def CommandProvider(cls):
'Conditions argument must take a list ' + \
'of functions. Found %s instead.'
if not isinstance(command.conditions, collections.Iterable):
if not isinstance(command.conditions, collections.abc.Iterable):
msg = msg % (command.name, type(command.conditions))
raise MachError(msg)