From a28c880c27e5ed7a9977f2f7c5ce77e9b9876be6 Mon Sep 17 00:00:00 2001
From: Yaroslav Brustinov <ybrustin@cisco.com>
Date: Tue, 20 Dec 2016 15:34:46 +0200
Subject: scapy_server fix Python3 issue

Change-Id: I39c0590673fd481fd6cf01ea6c0657a586c3e0a8
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
---
 .../trex_control_plane/stl/services/scapy_server/scapy_service.py       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server')

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
-- 
cgit