Skip to content

Commit

Permalink
limit the number of splits
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Oct 30, 2024
1 parent a94756a commit a492534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/chplenv/overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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(
(
Expand Down

0 comments on commit a492534

Please sign in to comment.