diff options
author | Kane Blueriver <kxxoling@gmail.com> | 2015-04-28 18:17:21 +0800 |
---|---|---|
committer | Kane Blueriver <kxxoling@gmail.com> | 2015-04-28 18:17:21 +0800 |
commit | 023c8cab619c852c3782c2efd6eb0cb8893ecbf6 (patch) | |
tree | c76bc5ec957164ea5aee61bc173f9b65690b9f62 | |
parent | 1ed7f229db4a4853dd654009f247edf48ec6ed62 (diff) | |
download | python-prettytable-ptable-release/0.8.tar.gz |
Fix testsrelease/0.8
-rw-r--r-- | prettytable.py | 2 |
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 |