Skip to content

Commit

Permalink
release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
foutaise committed Oct 22, 2017
1 parent f186dab commit cf54240
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
4 changes: 2 additions & 2 deletions PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Metadata-Version: 1.0
Name: texttable
Version: 1.0.0
Version: 1.1.0
Summary: module for creating simple ASCII tables
Home-page: https://github.com/foutaise/texttable/
Author: Gerome Fournier
Author-email: [email protected]
License: LGPL
Download-URL: https://github.com/foutaise/texttable/archive/v1.0.0.tar.gz
Download-URL: https://github.com/foutaise/texttable/archive/v1.1.0.tar.gz
Description: texttable is a module to generate a formatted text table, using ASCII
characters.
Platform: any
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Python module for creating simple ASCII tables

## Availability

This module is available on [PypI](https://pypi.python.org/pypi/texttable/1.0.0), and has been packaged for several Linux/Unix platforms
This module is available on [PypI](https://pypi.python.org/pypi/texttable/1.1.0), and has been packaged for several Linux/Unix platforms
([Debian](https://packages.debian.org/search?&searchon=names&keywords=python-texttable+),
[FreeBSD](https://www.freebsd.org/cgi/ports.cgi?query=texttable&stype=all), Fedora, Suse...).

Expand Down Expand Up @@ -197,10 +197,10 @@ DATA
__author__ = 'Gerome Fournier <jef(at)foutaise.org>'
__credits__ = 'Jeff Kowalczyk:\n - textwrap improved import\n ...at...
__license__ = 'LGPL'
__version__ = '1.0.0'
__version__ = '1.1.0'
VERSION
1.0.0
1.1.0
AUTHOR
Gerome Fournier <jef(at)foutaise.org>
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@

setup(
name = "texttable",
version = "1.0.0",
version = "1.1.0",
author = "Gerome Fournier",
author_email = "[email protected]",
url = "https://github.com/foutaise/texttable/",
download_url = "https://github.com/foutaise/texttable/archive/v1.0.0.tar.gz",
download_url = "https://github.com/foutaise/texttable/archive/v1.1.0.tar.gz",
license = "LGPL",
py_modules = ["texttable"],
description = DESCRIPTION,
Expand Down
16 changes: 6 additions & 10 deletions texttable.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

__author__ = 'Gerome Fournier <jef(at)foutaise.org>'
__license__ = 'LGPL'
__version__ = '1.0.0'
__version__ = '1.1.0'
__credits__ = """\
Jeff Kowalczyk:
- textwrap improved import
Expand Down Expand Up @@ -277,8 +277,8 @@ def set_cols_valign(self, array):
def set_cols_dtype(self, array):
"""Set the desired columns datatype for the cols.
- the elements of the array should be either a callable or any of "a",
"t", "f", "e" or "i":
- the elements of the array should be either a callable or any of
"a", "t", "f", "e", "i" or a callable:
* "a": automatic (try to use the most appropriate datatype)
* "t": treat as text
Expand Down Expand Up @@ -469,18 +469,14 @@ def _str(self, i, x):

n = self._precision
dtype = self._dtype[i]
if not callable(dtype):
dtype = FMT[dtype]

try:
try:
return dtype(x, n=n)
except TypeError:
if callable(dtype):
return dtype(x)
else:
return FMT[dtype](x, n=n)
except FallbackToText:
return self._fmt_text(x)


def _check_row_size(self, array):
"""Check that the specified array fits the previous rows size
"""
Expand Down

0 comments on commit cf54240

Please sign in to comment.