From 0763d67f5cccd0289550d0fec7379c3c7d2f26d8 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Mon, 6 Dec 2021 15:25:49 -0800 Subject: [PATCH] test_l3_unicast_traffic_gen: More pythonic way to do a for loop. Avoids unnecessary variables Signed-off-by: Matthew Stidham --- py-scripts/test_l3_unicast_traffic_gen.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/py-scripts/test_l3_unicast_traffic_gen.py b/py-scripts/test_l3_unicast_traffic_gen.py index 1e2e8dd9..8a66583b 100755 --- a/py-scripts/test_l3_unicast_traffic_gen.py +++ b/py-scripts/test_l3_unicast_traffic_gen.py @@ -50,8 +50,7 @@ class L3VariableTimeLongevity(LFCliBase): self.cx_profile = self.local_realm.new_l3_cx_profile() self.station_profiles = [] - index = 0 - for radio in radios: + for index in range(0, len(radios)): self.station_profile = self.local_realm.new_station_profile() self.station_profile.lfclient_url = self.lfclient_url self.station_profile.ssid = ssid_list[index] @@ -60,7 +59,6 @@ class L3VariableTimeLongevity(LFCliBase): self.station_profile.number_template = self.number_template self.station_profile.mode = 0 self.station_profiles.append(self.station_profile) - index += 1 self.cx_profile.host = self.host self.cx_profile.port = self.port