From 4c77b0b9232b8f01d146e9d4d645930703fe6483 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 7 Aug 2024 14:54:37 +0200 Subject: [PATCH] remove walrus So far, frappy is still supposed to be 3.6 compatible Change-Id: Ieb56c6500d58cdc1fe2f34b1448b05ba74b0fa6e Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34326 Reviewed-by: Enrico Faulhaber Tested-by: Jenkins Automated Tests Reviewed-by: Markus Zolliker Reviewed-by: Georg Brandl --- frappy/lib/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappy/lib/__init__.py b/frappy/lib/__init__.py index 6dd882fc..4e995301 100644 --- a/frappy/lib/__init__.py +++ b/frappy/lib/__init__.py @@ -107,7 +107,8 @@ class GeneralConfig: if cfg.get('confdir') is None: cfg['confdir'] = path.dirname(configfile) for key in mandatory: - if (env := environ.get(f'FRAPPY_{key.upper()}')) is not None: + env = environ.get(f'FRAPPY_{key.upper()}') + if env is not None: cfg[key] = env missing_keys = [ key for key in mandatory