From 061d149fbf9a1302ce7321b89975ed1709cba059 Mon Sep 17 00:00:00 2001 From: Niru Maheswaranathan Date: Tue, 3 May 2016 09:10:59 -0700 Subject: [PATCH] Adds UTF-8 source code encodings to .py files (see PEP263) --- tableprint.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tableprint.py b/tableprint.py index 14f2f56..8251d71 100644 --- a/tableprint.py +++ b/tableprint.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Tableprint @@ -16,8 +17,8 @@ from numbers import Number import sys import numpy as np -__all__ = ['table', 'row', 'header', 'hr', 'humantime', 'dataframe'] -__version__ = '0.3.0' +__all__ = ['table', 'header', 'row', 'hr', 'top', 'bottom', 'banner', 'dataframe', 'humantime'] +__version__ = '0.3.1' # set up table styles LineStyle = namedtuple('LineStyle', ('begin', 'hline', 'sep', 'end')) @@ -296,7 +297,7 @@ def humantime(t): # microseconds elif t >= 1e-6: - timestr = u"{:g} \u03BCs".format(t*1e6) + timestr = "{:g} \u03BCs".format(t*1e6) # nanoseconds or smaller else: