Skip to content

Commit baca7f5

Browse files
committed
improved array variable naming
1 parent 8787a2f commit baca7f5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

nettacker/core/module.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,24 @@ def generate_loops(self):
119119

120120
def sort_loops(self):
121121
for index in range(len(self.module_content["payloads"])):
122-
no_dep = []
123-
dep_temp_only = []
124-
dep_normal = []
122+
steps_without_dependencies = []
123+
steps_with_temp_dependencies = []
124+
steps_with_normal_dependencies = []
125125

126126
for step in copy.deepcopy(self.module_content["payloads"][index]["steps"]):
127127
resp = step[0]["response"]
128128
if "dependent_on_temp_event" not in resp:
129-
no_dep.append(step)
129+
steps_without_dependencies.append(step)
130130
elif "save_to_temp_events_only" in resp:
131-
dep_temp_only.append(step)
131+
steps_with_temp_dependencies.append(step)
132132
else:
133-
dep_normal.append(step)
133+
steps_with_normal_dependencies.append(step)
134134

135-
self.module_content["payloads"][index]["steps"] = no_dep + dep_temp_only + dep_normal
135+
self.module_content["payloads"][index]["steps"] = (
136+
steps_without_dependencies
137+
+ steps_with_temp_dependencies
138+
+ steps_with_normal_dependencies
139+
)
136140

137141
def start(self):
138142
active_threads = []

0 commit comments

Comments
 (0)