pep8 styling

This commit is contained in:
chfw 2014-12-15 00:10:06 +00:00
parent a6d50d841d
commit cffc7cd733
2 changed files with 5 additions and 3 deletions

View File

@ -117,7 +117,9 @@ class XLSheetWriter(SheetWriter):
value = array[i]
style = None
tmp_array = []
if isinstance(value, datetime.date) or isinstance(value, datetime.datetime):
is_date_type = (isinstance(value, datetime.date) or
isinstance(value, datetime.datetime))
if is_date_type:
tmp_array = [value.year, value.month, value.day]
value = xlrd.xldate.xldate_from_date_tuple(tmp_array, 0)
style = XFStyle()
@ -167,4 +169,4 @@ except:
# to allow this module to function independently
pass
__VERSION__ = "0.0.1"
__VERSION__ = "0.0.3"

View File

@ -20,7 +20,7 @@ if sys.version_info[0] == 2 and sys.version_info[1] < 7:
setup(
name='pyexcel-xls',
author="C. W.",
version='0.0.2',
version='0.0.3',
author_email="wangc_2011@hotmail.com",
url="https://github.com/chfw/pyexcel-xls",
description='A wrapper library to read, manipulate and write data in xls format. It reads xlsx and xlsm format',