print_flags.py: clean up

always ensure current impl of something is the best!
This commit is contained in:
Shane Smiskol
2024-05-07 15:06:23 -07:00
parent f597d63bf6
commit 888b38c3db
+1 -5
View File
@@ -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()