Update scripts/show-unused-features.py

Co-authored-by: Willi Ballenthin <wballenthin@google.com>
This commit is contained in:
Aayush Goel
2023-08-09 15:33:03 +05:30
committed by GitHub
parent df9828dd7f
commit 57486733e7

View File

@@ -97,7 +97,7 @@ def print_unused_features(feature_map: typing.Counter[Feature], rules_feature_se
continue
unused_features.append((count, get_colored(str(feature))))
unused_features = [
(get_colored(str(count)), feature) for count, feature in sorted(unused_features, key=lambda x: x[0])
(str(count), feature) for count, feature in sorted(unused_features, key=lambda x: x[0])
]
print("\n")
print(tabulate.tabulate(unused_features, headers=["Count", "Feature"], tablefmt="plain"))