diff options
author | 2016-03-29 14:31:49 +0300 | |
---|---|---|
committer | 2016-03-29 14:31:49 +0300 | |
commit | dfbd4594242827d372c27a08599ed1227ae763a1 (patch) | |
tree | c1aa6c2f7dc866069f65cdb76454ae53cc5857ea /scripts/external_libs/texttable-0.8.4/texttable.py | |
parent | 435255fc66c8d046323e26cc42253707434f14d3 (diff) | |
parent | 78ec5b861ef1305e0e7d9ef25c8929027b1a3221 (diff) |
merge
Diffstat (limited to 'scripts/external_libs/texttable-0.8.4/texttable.py')
-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': |