summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
diff options
context:
space:
mode:
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