Skip to content
Snippets Groups Projects
Commit 2cfc1d0d authored by henry's avatar henry Committed by Richard Pospesel
Browse files

Bug 1858056 - Favor RawConfigParser.read_file instead of deprecated readfp r=saschanaz

readfp is deprecated since Python 3.2

Differential Revision: https://phabricator.services.mozilla.com/D190532
parent 6e6cdac6
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,7 @@ class ConfigSettings(collections.abc.Mapping):
"""Load config data by reading file objects."""
for fp in fps:
self._config.readfp(fp)
self._config.read_file(fp)
def write(self, fh):
"""Write the config to a file object."""
......
......@@ -49,7 +49,7 @@ class ReplaceRequirements(object):
parser = configparser.ConfigParser()
path = os.path.join(self.tox_path, "tox.ini")
with open(path) as f:
parser.readfp(f)
parser.read_file(f)
deps = parser.get("testenv", "deps")
dep_re = re.compile("(?:.*:\s*)?-r(.*)")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment