gst-validate: Fixed compatibility with Python 3.12

config.readfp() was removed in python 3.12 and config.read_file() does the same
thing and has been available since Python 3.2

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5624>
This commit is contained in:
Jordan Yelloz 2023-11-07 11:42:19 -07:00
parent bd4a9fde89
commit b1f3722530

View file

@ -2426,7 +2426,7 @@ class ScenarioManager(Loggable):
config = configparser.RawConfigParser()
f = open(scenario_defs)
config.readfp(f)
config.read_file(f)
for section in config.sections():
name = None