diff options
author | 2016-03-23 16:11:53 +0200 | |
---|---|---|
committer | 2016-03-23 16:11:53 +0200 | |
commit | 709eda3b4ea0385da009932df3eba457e955e887 (patch) | |
tree | 6dc28821bdd3089be9cf837400fc12ff10f66992 /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils | |
parent | e9ab260a5fa47604406e1e9432d0036dc8fd9928 (diff) |
moving us to python 3 by default (console)
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/common.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)) + |