From 709eda3b4ea0385da009932df3eba457e955e887 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 23 Mar 2016 16:11:53 +0200 Subject: moving us to python 3 by default (console) --- .../automation/trex_control_plane/stl/trex_stl_lib/utils/common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/common.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/common.py index 9490c1b0..ae74e932 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/common.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/common.py @@ -54,3 +54,7 @@ def get_number(input): return int(input) except: return None + +def list_intersect(l1, l2): + return list(filter(lambda x: x in l2, l1)) + -- cgit