diff options
author | 2016-03-21 17:22:06 +0200 | |
---|---|---|
committer | 2016-03-21 17:22:06 +0200 | |
commit | 738da2c0cd38f13a3cf7ae726f7698959ebf1ff0 (patch) | |
tree | 8be6fb021cbf6039cb91ce991e22254bdfb8cff7 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | c59a02f8036bbdc488f286412e990a16e3aa1df9 (diff) |
python 3 - examples working
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py index 75e15ca1..e501c185 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py @@ -31,9 +31,14 @@ import argparse import tempfile import subprocess import os -from dpkt import pcap from operator import itemgetter +# HACK +import sys +if sys.version_info < (3, 0): + from dpkt import pcap +# HACK END + class BpSimException(Exception): pass |