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/5627>
This commit is contained in:
Jordan Yelloz 2023-11-07 11:42:19 -07:00 committed by Tim-Philipp Müller
parent 3dcb02ac64
commit 8041686539

View file

@ -2416,7 +2416,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