summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-29 13:43:14 +0300
committerimarom <imarom@cisco.com>2016-03-29 13:45:44 +0300
commit78ec5b861ef1305e0e7d9ef25c8929027b1a3221 (patch)
treef9e5b26b1c59ba096b1855df283e279617b6a3d8 /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils
parent69d58bfda879f98d0b752225209165136d22cb5b (diff)
TUI fixup - removed unicodes, and encode as utf-8 for python 2.7
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_tables.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_tables.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_tables.py
index 75adf9e3..4b7e9b3e 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_tables.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_tables.py
@@ -25,10 +25,7 @@ def print_table_with_header(texttable_obj, header="", untouched_header=""):
header = header.replace("_", " ").title() + untouched_header
print(format_text(header, 'cyan', 'underline') + "\n")
- if sys.version_info < (3,0):
- print((texttable_obj.draw().encode('utf-8') + "\n"))
- else:
- print((texttable_obj.draw() + "\n"))
+ print((texttable_obj.draw() + "\n"))
if __name__ == "__main__":
pass