Skip to content

Commit da36530

Browse files
committed
Use := in save_environment
1 parent baf1e18 commit da36530

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

master/master.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,7 @@ def save_environment(prop, allowlist):
456456
def extract_fn(_rc, stdout, _stderr):
457457
env = {}
458458
for line in stdout.split("\n"):
459-
match = re.match("^([^=]+)=(.*)$", line.strip())
460-
if match:
459+
if match := re.match("^([^=]+)=(.*)$", line.strip()):
461460
var = match.group(1)
462461
if allow_re.fullmatch(var):
463462
env[var.upper()] = match.group(2)

0 commit comments

Comments
 (0)