Skip to content

Commit

Permalink
Use ConfigParser which replaces SafeConfigParser since Python 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavigator authored and andrewleech committed Feb 4, 2024
1 parent 5c1b22b commit d945a86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pywebdav/lib/INI_Parse.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from __future__ import absolute_import
from __future__ import print_function
from six.moves.configparser import SafeConfigParser
try:
from configparser import ConfigParser
except ImportError:
from six.moves.configparser import SafeConfigParser as ConfigParser

class Configuration:
def __init__(self, fileName):
cp = SafeConfigParser()
cp = ConfigParser()
cp.read(fileName)
self.__parser = cp
self.fileName = fileName
Expand Down

0 comments on commit d945a86

Please sign in to comment.