- Add pywebdav-server-configparser.patch: Replace long deprecated SafeConfigParser OBS-URL: https://build.opensuse.org/request/show/1143993 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/python-PyWebDAV3-GNUHealth?expand=0&rev=7
19 lines
722 B
Diff
19 lines
722 B
Diff
diff -ur PyWebDAV3-GNUHealth-0.12.0/pywebdav/lib/INI_Parse.py PyWebDAV3-GNUHealth-0.12.0.patched/pywebdav/lib/INI_Parse.py
|
|
--- PyWebDAV3-GNUHealth-0.12.0/pywebdav/lib/INI_Parse.py 2023-07-14 17:28:43.000000000 +0200
|
|
+++ PyWebDAV3-GNUHealth-0.12.0.patched/pywebdav/lib/INI_Parse.py 2024-02-04 13:05:29.322027790 +0100
|
|
@@ -1,8 +1,12 @@
|
|
-from configparser import SafeConfigParser
|
|
+try:
|
|
+ from configparser import ConfigParser
|
|
+except ImportError:
|
|
+ from configparser import SafeConfigParser as ConfigParser
|
|
+
|
|
|
|
class Configuration:
|
|
def __init__(self, fileName):
|
|
- cp = SafeConfigParser()
|
|
+ cp = ConfigParser()
|
|
cp.read(fileName)
|
|
self.__parser = cp
|
|
self.fileName = fileName
|