diff options
author | 2016-12-20 15:34:46 +0200 | |
---|---|---|
committer | 2016-12-20 15:34:46 +0200 | |
commit | a28c880c27e5ed7a9977f2f7c5ce77e9b9876be6 (patch) | |
tree | 2737fe03b21b74bfcab27970ae675c8d8ef19a1f /scripts/automation/trex_control_plane/stl/services/scapy_server | |
parent | abc0cb8755084ad00e0dc3421f307b0405f54176 (diff) |
scapy_server fix Python3 issue
Change-Id: I39c0590673fd481fd6cf01ea6c0657a586c3e0a8
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py index e5f1b20c..654b98f7 100755 --- a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py +++ b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py @@ -451,7 +451,7 @@ class Scapy_service(Scapy_service_api): def _append_intructions_help(self): for instruction_meta in self.field_engine_instructions_meta: clazz = eval(instruction_meta['id']) - instruction_meta['help'] = base64.b64encode(getdoc(clazz.__init__)).decode('ascii') + instruction_meta['help'] = base64.b64encode(getdoc(clazz.__init__).encode()).decode('ascii') def _all_protocol_structs(self): old_stdout = sys.stdout |