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 --- scripts/external_libs/texttable-0.8.4/texttable.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts/external_libs/texttable-0.8.4/texttable.py') diff --git a/scripts/external_libs/texttable-0.8.4/texttable.py b/scripts/external_libs/texttable-0.8.4/texttable.py index 2224ad77..71ef0ea6 100644 --- a/scripts/external_libs/texttable-0.8.4/texttable.py +++ b/scripts/external_libs/texttable-0.8.4/texttable.py @@ -590,10 +590,7 @@ class Texttable: array = [] for c in cell.split('\n'): try: - if sys.version >= '3.0': - c = str(c) - else: - c = unicode(c, 'utf') + c = str(c) except UnicodeDecodeError as strerror: sys.stderr.write("UnicodeDecodeError exception for string '%s': %s\n" % (c, strerror)) if sys.version >= '3.0': -- cgit