From: Yaroslav Brustinov Date: Tue, 20 Dec 2016 13:34:46 +0000 (+0200) Subject: scapy_server fix Python3 issue X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F5321%2F1;p=trex.git scapy_server fix Python3 issue Change-Id: I39c0590673fd481fd6cf01ea6c0657a586c3e0a8 Signed-off-by: Yaroslav Brustinov --- 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