diff options
author | 2016-03-29 13:43:14 +0300 | |
---|---|---|
committer | 2016-03-29 13:45:44 +0300 | |
commit | 78ec5b861ef1305e0e7d9ef25c8929027b1a3221 (patch) | |
tree | f9e5b26b1c59ba096b1855df283e279617b6a3d8 /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils | |
parent | 69d58bfda879f98d0b752225209165136d22cb5b (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.py | 5 |
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 |