Skip to content

Commit 03e0236

Browse files
committed
Remove Python 2 workaround in utils/profile_tool/most_used_components.py
1 parent 394c076 commit 03e0236

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

utils/profile_tool/most_used_components.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
import os
32
from collections import defaultdict
43

@@ -7,13 +6,10 @@
76
from .most_used_rules import _sorted_dict_by_num_value
87
from .common import generate_output, merge_dicts, remove_zero_counts
98

10-
PYTHON_2 = sys.version_info[0] < 3
11-
12-
if not PYTHON_2:
13-
from .most_used_rules import _get_profiles_for_product
14-
from ..controleval import (
15-
load_controls_manager,
16-
load_product_yaml,
9+
from .most_used_rules import _get_profiles_for_product
10+
from ..controleval import (
11+
load_controls_manager,
12+
load_product_yaml,
1713
)
1814

1915

0 commit comments

Comments
 (0)