mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01:00
Update more deprecated python imports.
Signed-off-by: Max von Forell <max@vonforell.de>
This commit is contained in:
parent
38b853b66a
commit
127463a2c5
2 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ def reraise_attribute_error(func):
|
||||||
return _
|
return _
|
||||||
|
|
||||||
|
|
||||||
class ConfigSettings(collections.Mapping):
|
class ConfigSettings(collections.abc.Mapping):
|
||||||
"""Interface for configuration settings.
|
"""Interface for configuration settings.
|
||||||
|
|
||||||
This is the main interface to the configuration.
|
This is the main interface to the configuration.
|
||||||
|
@ -190,7 +190,7 @@ class ConfigSettings(collections.Mapping):
|
||||||
will result in exceptions being raised.
|
will result in exceptions being raised.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class ConfigSection(collections.MutableMapping, object):
|
class ConfigSection(collections.abc.MutableMapping, object):
|
||||||
"""Represents an individual config section."""
|
"""Represents an individual config section."""
|
||||||
def __init__(self, config, name, settings):
|
def __init__(self, config, name, settings):
|
||||||
object.__setattr__(self, '_config', config)
|
object.__setattr__(self, '_config', config)
|
||||||
|
|
|
@ -152,7 +152,7 @@ def CommandProvider(cls):
|
||||||
'Conditions argument must take a list ' + \
|
'Conditions argument must take a list ' + \
|
||||||
'of functions. Found %s instead.'
|
'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))
|
msg = msg % (command.name, type(command.conditions))
|
||||||
raise MachError(msg)
|
raise MachError(msg)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue