summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-29 13:43:14 +0300
committerimarom <imarom@cisco.com>2016-03-29 13:45:44 +0300
commit78ec5b861ef1305e0e7d9ef25c8929027b1a3221 (patch)
treef9e5b26b1c59ba096b1855df283e279617b6a3d8 /scripts/external_libs
parent69d58bfda879f98d0b752225209165136d22cb5b (diff)
TUI fixup - removed unicodes, and encode as utf-8 for python 2.7
Diffstat (limited to 'scripts/external_libs')
-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':