From b29fdd0fce57562704a92a879287002869c8b965 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 29 May 2021 18:48:34 +0100 Subject: [PATCH] Fix re.sub() to work properly on line 710 --- bridge_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 9d1dfb4..9e74053 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -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('=')