Fix re.sub() to work properly on line 710

This commit is contained in:
Simon 2021-05-29 18:48:34 +01:00
parent 6b89bea20f
commit b29fdd0fce
1 changed files with 2 additions and 2 deletions

View File

@ -647,8 +647,8 @@ def options_config():
if 'OPTIONS' in CONFIG['SYSTEMS'][_system]:
_options = {}
CONFIG['SYSTEMS'][_system]['OPTIONS'] = CONFIG['SYSTEMS'][_system]['OPTIONS'].rstrip('\x00')
re.sub("\'","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
re.sub("\"","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
CONFIG['SYSTEMS'][_system]['OPTIONS'] = re.sub("\'","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
CONFIG['SYSTEMS'][_system]['OPTIONS'] = re.sub("\"","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
for x in CONFIG['SYSTEMS'][_system]['OPTIONS'].split(";"):
try:
k,v = x.split('=')