From 78ec5b861ef1305e0e7d9ef25c8929027b1a3221 Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 29 Mar 2016 13:43:14 +0300 Subject: TUI fixup - removed unicodes, and encode as utf-8 for python 2.7 --- .../trex_control_plane/stl/trex_stl_lib/utils/text_tables.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils') 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 -- cgit