From 804168653920ce2f1762e6ab42c8c5074214df40 Mon Sep 17 00:00:00 2001 From: Jordan Yelloz Date: Tue, 7 Nov 2023 11:42:19 -0700 Subject: [PATCH] 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: --- subprojects/gst-devtools/validate/launcher/baseclasses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-devtools/validate/launcher/baseclasses.py b/subprojects/gst-devtools/validate/launcher/baseclasses.py index 59034da..6502e88 100644 --- a/subprojects/gst-devtools/validate/launcher/baseclasses.py +++ b/subprojects/gst-devtools/validate/launcher/baseclasses.py @@ -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 -- 2.7.4