File python3-ds4drv_PR24.patch of Package python3-ds4drv

From 90ea56ade56c04b682535f1bb8314c53a3e51c50 Mon Sep 17 00:00:00 2001
From: Vochatrak-az-ezm <82781071+Vochatrak-az-ezm@users.noreply.github.com>
Date: Wed, 25 Dec 2024 03:04:57 +0500
Subject: [PATCH] Update config.py

---
 ds4drv/config.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ds4drv/config.py b/ds4drv/config.py
index 3b6386b..2083f7e 100644
--- a/ds4drv/config.py
+++ b/ds4drv/config.py
@@ -81,7 +81,7 @@ def add_arguments(self, actions):
 controllopt = parser.add_argument_group("controller options")
 
 
-class Config(configparser.SafeConfigParser):
+class Config(configparser.ConfigParser):
     def load(self, filename):
         self.read([filename])
 
@@ -108,7 +108,7 @@ def section(self, section, key_type=str, value_type=str):
             return {}
 
     def sections(self, prefix=None):
-        for section in configparser.SafeConfigParser.sections(self):
+        for section in configparser.ConfigParser.sections(self):
             match = re.match(r"{0}:(.+)".format(prefix), section)
             if match:
                 yield match.group(1), section
openSUSE Build Service is sponsored by