diff options
author | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2012-08-02 09:25:35 +0000 |
---|---|---|
committer | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2012-08-02 09:25:35 +0000 |
commit | 7e6c5be2343a260f83b236f1a4ce7a84dfbca009 (patch) | |
tree | d5c8e551d94c5c5ed09414ab8c1e1215a4864c5a | |
parent | dfeb0c6957b58ce3834e319701c70a8e4e14d8ab (diff) | |
download | python-prettytable-7e6c5be2343a260f83b236f1a4ce7a84dfbca009.tar.gz |
Fix simple bug regarding initialisation of int_format for new tables.
git-svn-id: http://prettytable.googlecode.com/svn/trunk@85 0f58610c-415a-11de-9c03-5d6cfad8e937
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | prettytable.py | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,9 @@ * Fixed a simple bug regarding validation of max_width (thanks to Anthony Toole for pointing out this bug and providing a patch). +* Fixed a simple bug regarding initialisation of int_format value + for new tables (thanks to Ingo Schmiegel for pointing out this + bug!) ########## PrettyTable 0.6 - April XX, 2012 ########## diff --git a/prettytable.py b/prettytable.py index 59d51a2..03631f8 100644 --- a/prettytable.py +++ b/prettytable.py @@ -143,7 +143,7 @@ class PrettyTable(object): self._reversesort = kwargs["reversesort"] or False self._sort_key = kwargs["sort_key"] or (lambda x: x) - self._int_format = kwargs["float_format"] or {} + self._int_format = kwargs["int_format"] or {} self._float_format = kwargs["float_format"] or {} self._padding_width = kwargs["padding_width"] or 1 self._left_padding_width = kwargs["left_padding_width"] or None |