Commit 07d0effa authored by Cooper Lees's avatar Cooper Lees Committed by Facebook GitHub Bot

Remove configparser deprecated method readfp

Summary:
- Replace deprecated method
- Stops spam to my console as I run with show deprecation warnings

Reviewed By: yi-xian

Differential Revision: D22776372

fbshipit-source-id: d29193e4c4c26d7facfabf9038dcb33c1af92434
parent 4eb1b242
......@@ -181,13 +181,13 @@ class ManifestParser(object):
if fp is None:
with open(file_name, "r") as fp:
config.readfp(fp)
config.read_file(fp)
elif isinstance(fp, type("")):
# For testing purposes, parse from a string (str
# or unicode)
config.readfp(io.StringIO(fp))
config.read_file(io.StringIO(fp))
else:
config.readfp(fp)
config.read_file(fp)
# validate against the schema
seen_sections = set()
......
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