summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKane Blueriver <kxxoling@gmail.com>2015-04-28 18:17:21 +0800
committerKane Blueriver <kxxoling@gmail.com>2015-04-28 18:17:21 +0800
commit023c8cab619c852c3782c2efd6eb0cb8893ecbf6 (patch)
treec76bc5ec957164ea5aee61bc173f9b65690b9f62
parent1ed7f229db4a4853dd654009f247edf48ec6ed62 (diff)
downloadpython-prettytable-ptable-release/0.8.tar.gz
Fix testsrelease/0.8
-rw-r--r--prettytable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/prettytable.py b/prettytable.py
index ba74d33..fee2148 100644
--- a/prettytable.py
+++ b/prettytable.py
@@ -371,6 +371,8 @@ class PrettyTable(object):
if val == "":
return
try:
+ val = val.rsplit('f')[0]
+ assert type(val) in (str, unicode)
assert "." in val
bits = val.split(".")
assert len(bits) <= 2