summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/texttable-0.8.4
diff options
context:
space:
mode:
authorDan Klein <danklein10@gmail.com>2016-01-04 23:31:31 +0200
committerDan Klein <danklein10@gmail.com>2016-01-04 23:31:31 +0200
commit629b54c4c9df9c718d818a004ecf15c2cf6c770a (patch)
tree7dfc3c64c7561032d690ce6188130e80d344054e /scripts/external_libs/texttable-0.8.4
parent3757099103ed1bf56f85ccf5bb861a331287cbbb (diff)
parent857bdcf05a920b99e1cf180c700176b04801da00 (diff)
Merge branch 'master' into dan_stateless
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]