summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-12-20 15:34:46 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-12-20 15:34:46 +0200
commita28c880c27e5ed7a9977f2f7c5ce77e9b9876be6 (patch)
tree2737fe03b21b74bfcab27970ae675c8d8ef19a1f /scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
parentabc0cb8755084ad00e0dc3421f307b0405f54176 (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/scapy_service.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py2
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