Update logic

This commit is contained in:
Stacey Wrazien 2015-07-29 09:48:04 -04:00
parent a50f3264bf
commit 9d0080cc24
1 changed files with 2 additions and 2 deletions

View File

@ -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):