From 888b38c3db44a53b059565b4f863503dd5bcf6c1 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 7 May 2024 15:06:23 -0700 Subject: [PATCH] print_flags.py: clean up always ensure current impl of something is the best! --- selfdrive/debug/print_flags.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/selfdrive/debug/print_flags.py b/selfdrive/debug/print_flags.py index 28e18f6f7e..c69765550e 100755 --- a/selfdrive/debug/print_flags.py +++ b/selfdrive/debug/print_flags.py @@ -10,9 +10,5 @@ for brand in BRANDS: if len(all_flags): print(brand.__module__.split('.')[-2].upper() + ':') for flag in sorted(all_flags): - print(f' {flag.name:<24}: ', end='') - for platform in brand: - if platform.config.flags & flag: - print(platform.name, end=', ') - print() + print(f' {flag.name:<24}:', {platform.name for platform in brand.with_flags(flag)}) print()