From ac53e9537c7b7828c8f8cd51a0fd709da87da88e Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Tue, 2 Aug 2016 02:51:20 +0300 Subject: stf daemon another python3 fix --- scripts/automation/trex_control_plane/server/trex_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/server') diff --git a/scripts/automation/trex_control_plane/server/trex_server.py b/scripts/automation/trex_control_plane/server/trex_server.py index cb2fd495..2b718a69 100755 --- a/scripts/automation/trex_control_plane/server/trex_server.py +++ b/scripts/automation/trex_control_plane/server/trex_server.py @@ -173,7 +173,7 @@ class CTRexServer(object): try: with open(filepath, 'rb') as f: file_content = f.read() - return binascii.b2a_base64(file_content) + return binascii.b2a_base64(file_content).decode(errors='replace') except Exception as e: err_str = "Can't get requested file %s: %s" % (filepath, e) logger.error(err_str) -- cgit 1.2.3-korg