kconfigfunctions.py: Fix used-before-assignment error with pylint 3.2

CI reports error:
kconfigfunctions.py:143:11: E0601: Using variable 'edtlib' before
assignment (used-before-assignment)

Initialize edtlib to none when there is no edt.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
This commit is contained in:
Ioannis Damigos 2024-06-03 11:32:50 +03:00 committed by David Leach
commit 9c8fd3745c

View file

@ -29,6 +29,7 @@ if not doc_mode:
edtlib = inspect.getmodule(edt)
else:
edt = None
edtlib = None
def _warn(kconf, msg):