File canmatrix-versioneer_312_fix.patch of Package python-canmatrix

--- canmatrix-1.0/versioneer.py	2023-07-19 22:39:24.000000000 +0300
+++ canmatrix/versioneer.py	2024-11-18 10:33:19.956670063 +0200
@@ -336,9 +336,9 @@
     # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
     # the top of versioneer.py for instructions on writing your setup.cfg .
     setup_cfg = os.path.join(root, "setup.cfg")
-    parser = configparser.SafeConfigParser()
+    parser = configparser.ConfigParser()
     with open(setup_cfg, "r") as f:
-        parser.readfp(f)
+        parser.read_file(f)
     VCS = parser.get("versioneer", "VCS")  # mandatory
 
     def get(parser, name):
openSUSE Build Service is sponsored by