diff options
Diffstat (limited to 'scripts/external_libs')
-rw-r--r-- | scripts/external_libs/texttable-0.8.4/texttable.py | 5 |
1 files changed, 1 insertions, 4 deletions
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': |