summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/texttable-0.8.4/texttable.py
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-03-29 14:31:49 +0300
committerHanoh Haim <hhaim@cisco.com>2016-03-29 14:31:49 +0300
commitdfbd4594242827d372c27a08599ed1227ae763a1 (patch)
treec1aa6c2f7dc866069f65cdb76454ae53cc5857ea /scripts/external_libs/texttable-0.8.4/texttable.py
parent435255fc66c8d046323e26cc42253707434f14d3 (diff)
parent78ec5b861ef1305e0e7d9ef25c8929027b1a3221 (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.py5
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':