Skip to content

Commit

Permalink
pep8 styling
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Dec 15, 2014
1 parent a6d50d8 commit cffc7cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pyexcel_xls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def write_row(self, array):
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()
Expand Down Expand Up @@ -167,4 +169,4 @@ def close(self):
# to allow this module to function independently
pass

__VERSION__ = "0.0.1"
__VERSION__ = "0.0.3"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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',
Expand Down

0 comments on commit cffc7cd

Please sign in to comment.