From 421ea06ff886331dc6b3574a46190022a401645a Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 9 May 2025 16:34:16 +0100 Subject: [PATCH] str lambda clean on common --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.py b/common.py index 3e40f30..ad686d8 100644 --- a/common.py +++ b/common.py @@ -39,7 +39,7 @@ common = sys.modules[__name__] # Fixed parameters that don't depend on CLI arguments. consts = {} consts['repo_short_id'] = 'lkmc' -consts['linux_kernel_version'] = '.'.join(map(lambda i: str(i), path_properties.linux_kernel_version_tuple)) +consts['linux_kernel_version'] = '.'.join(map(str, path_properties.linux_kernel_version_tuple)) # https://stackoverflow.com/questions/20010199/how-to-determine-if-a-process-runs-inside-lxc-docker consts['in_docker'] = os.path.exists('/.dockerenv') consts['root_dir'] = os.path.dirname(os.path.abspath(__file__))