summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/texttable-0.8.4
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-12-24 16:16:49 +0200
committerHanoh Haim <hhaim@cisco.com>2015-12-24 16:16:49 +0200
commit9d1cd91825d48a97ca0ea21fa7bd34900f6c7450 (patch)
treebb3c8585e29f7c6787d0f298e2d2655b21277855 /scripts/external_libs/texttable-0.8.4
parent32bdea5fd30ffc378a213e773634015a5d5f255f (diff)
parentba297ed1bfdfbf61bc99fe7f75deb800b570c58e (diff)
merge vm random support
Diffstat (limited to 'scripts/external_libs/texttable-0.8.4')
-rw-r--r--scripts/external_libs/texttable-0.8.4/texttable.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/external_libs/texttable-0.8.4/texttable.py b/scripts/external_libs/texttable-0.8.4/texttable.py
index 775a43e5..684e63bd 100644
--- a/scripts/external_libs/texttable-0.8.4/texttable.py
+++ b/scripts/external_libs/texttable-0.8.4/texttable.py
@@ -365,7 +365,11 @@ class Texttable:
try:
f = float(x)
except:
- return str(x)
+ try:
+ return str(x)
+ except:
+ return x.encode('utf-8')
+
n = self._precision
dtype = self._dtype[i]