gst-validate: Fixed compatibility with Python 3.12
authorJordan Yelloz <jordan.yelloz@collabora.com>
Tue, 7 Nov 2023 18:42:19 +0000 (11:42 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 9 Nov 2023 10:19:52 +0000 (10:19 +0000)
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>

subprojects/gst-devtools/validate/launcher/baseclasses.py

index 59034da..6502e88 100644 (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