From: Yu Watanabe Date: Tue, 17 Feb 2026 11:31:10 +0000 (+0900) Subject: Revert "meson: fix compatibility with Python 3.7" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aaa9d988218bf44a9c92791aa8d3cb1d796124d;p=thirdparty%2Fsystemd.git Revert "meson: fix compatibility with Python 3.7" This reverts commit 2793d6acf063ae8fe506a1684e5a24ce83267e6d. Now we require Python 3.9 or newer. --- diff --git a/src/basic/filesystem-sets.py b/src/basic/filesystem-sets.py index 09fcc0347a0..c622b539788 100755 --- a/src/basic/filesystem-sets.py +++ b/src/basic/filesystem-sets.py @@ -308,7 +308,7 @@ def generate_fs_in_group(): print(' switch (fs_group) {') for name, _, *filesystems in FILESYSTEM_SETS: - magics = sorted(set(sum((NAME_TO_MAGIC[fs] for fs in filesystems), []))) + magics = sorted(set(sum((NAME_TO_MAGIC[fs] for fs in filesystems), start=[]))) enum = 'FILESYSTEM_SET_' + name[1:].upper().replace('-', '_') print(f' case {enum}:') opts = '\n || '.join(f'F_TYPE_EQUAL(st->f_type, {magic})' @@ -355,7 +355,7 @@ def magic_defines(): def check(): kernel_magics = set(magic_defines()) - our_magics = set(sum(NAME_TO_MAGIC.values(), [])) + our_magics = set(sum(NAME_TO_MAGIC.values(), start=[])) extra = kernel_magics - our_magics if extra: sys.exit(f"kernel knows additional filesystem magics: {', '.join(sorted(extra))}")