From a492534d65851f97f891106cdfb39c9c84eb6a3f Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Wed, 30 Oct 2024 13:16:05 -0700 Subject: [PATCH] limit the number of splits Signed-off-by: Jade Abraham --- util/chplenv/overrides.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/chplenv/overrides.py b/util/chplenv/overrides.py index 8434defc33f..bcf4a350b18 100755 --- a/util/chplenv/overrides.py +++ b/util/chplenv/overrides.py @@ -184,7 +184,7 @@ def parse(self): if self.skip_line(line, linenum): continue - var, val = [f.strip() for f in line.split('=')] + var, val = [f.strip() for f in line.split('=', maxsplit=1)] self.chplconfig[var] = val def skip_line(self, line, linenum): @@ -198,7 +198,7 @@ def skip_line(self, line, linenum): # Check for syntax errors try: - var, val = [f.strip() for f in line.split('=')] + var, val = [f.strip() for f in line.split('=', maxsplit=1)] except ValueError: self.warnings.append( (