summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-16 02:06:52 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-16 02:06:52 +0300
commitf91190c71d0a2550364fdce909df297405fb5e43 (patch)
treec6ccb6f26070437151866d22e7f44efce0121bbd /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
parent9c1dfed4edc4a4d3f51fc7f9ac9cab58657ab818 (diff)
python3 further fixes
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
index e182f5ea..6b1185ef 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
@@ -881,7 +881,7 @@ class CRxStats(CTRexStats):
output['ts'] = current['ts']
# we care only about the current active keys
- pg_ids = filter(is_intable, current.keys())
+ pg_ids = list(filter(is_intable, current.keys()))
for pg_id in pg_ids:
@@ -907,7 +907,7 @@ class CRxStats(CTRexStats):
# cleanp old reference values - they are dead
- ref_pg_ids = filter(is_intable, self.reference_stats.keys())
+ ref_pg_ids = list(filter(is_intable, self.reference_stats.keys()))
deleted_pg_ids = set(ref_pg_ids).difference(pg_ids)
for d_pg_id in deleted_pg_ids: