2024-02-04 12:15:42 +00:00
|
|
|
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 @@
|
2026-01-23 18:29:17 +01:00
|
|
|
-from configparser import ConfigParser
|
2024-02-04 12:15:42 +00:00
|
|
|
+try:
|
|
|
|
|
+ from configparser import ConfigParser
|
|
|
|
|
+except ImportError:
|
|
|
|
|
+ from configparser import SafeConfigParser as ConfigParser
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
class Configuration:
|
|
|
|
|
def __init__(self, fileName):
|
2026-01-23 18:29:17 +01:00
|
|
|
cp = ConfigParser()
|
2024-02-04 12:15:42 +00:00
|
|
|
cp.read(fileName)
|
|
|
|
|
self.__parser = cp
|
|
|
|
|
self.fileName = fileName
|