We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d0fe72 + 796af29 commit 699069eCopy full SHA for 699069e
dparse/parser.py
@@ -6,7 +6,7 @@
6
7
from io import StringIO
8
9
-from configparser import SafeConfigParser, NoOptionError
+from configparser import ConfigParser, NoOptionError
10
11
12
from .regex import URL_REGEX, HASH_REGEX
@@ -274,7 +274,7 @@ def parse(self):
274
275
:return:
276
"""
277
- parser = SafeConfigParser()
+ parser = ConfigParser()
278
parser.readfp(StringIO(self.obj.content))
279
for section in parser.sections():
280
try:
@@ -379,7 +379,7 @@ def parse(self):
379
380
class SetupCfgParser(Parser):
381
def parse(self):
382
383
384
for section in parser.values():
385
if section.name == 'options':
0 commit comments