Update logic
This commit is contained in:
parent
a50f3264bf
commit
9d0080cc24
|
@ -11,8 +11,8 @@ class Parser(configparser.RawConfigParser):
|
|||
def __remove_quotes(self, value):
|
||||
quotes = ["'", "\""]
|
||||
for quote in quotes:
|
||||
if value[0] == quote and value[-1] == quote:
|
||||
return value.strip(quote)
|
||||
if len(value) >= 2 and value[0] == value[-1] == quote:
|
||||
return value[1:-1]
|
||||
return value
|
||||
|
||||
def get(self, section, option):
|
||||
|
|
Loading…
Reference in New Issue