diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-02 02:51:20 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-02 02:51:20 +0300 |
commit | ac53e9537c7b7828c8f8cd51a0fd709da87da88e (patch) | |
tree | df6da4cc4ad1871a39e650a9980e7048a5758dde /scripts/automation | |
parent | 511854b7a8fe289603cb4475a39d713244846ebf (diff) |
stf daemon another python3 fix
Diffstat (limited to 'scripts/automation')
-rwxr-xr-x | scripts/automation/trex_control_plane/server/trex_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |