Skip to content

Commit 9da79fb

Browse files
committed
fix #29: set skip_empty_rows to False
1 parent 930096c commit 9da79fb

File tree

7 files changed

+16
-8
lines changed

7 files changed

+16
-8
lines changed

CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ Updated
1111
#. `#19 <https://github.com/pyexcel/pyexcel-io/issues/19>`__,
1212
use cString by default
1313

14+
0.3.2 - unreleased
15+
--------------------------------------------------------------------------------
16+
17+
Updated
18+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19+
20+
#. `#29 <https://github.com/pyexcel/pyexcel-io/issues/29>`_, change
21+
skip_empty_rows to False by default
1422

1523
0.3.1 - 21.01.2017
1624
--------------------------------------------------------------------------------

docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
project = u'pyexcel-io'
1919
copyright = u'2015-2017 Onni Software Ltd.'
20-
version = '0.3.0'
21-
release = '0.3.1'
20+
version = '0.3.1'
21+
release = '0.3.2'
2222
exclude_patterns = []
2323
pygments_style = 'sphinx'
2424
html_theme = 'default'

pyexcel_io.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-io"
33
nick_name: io
4-
version: 0.3.1
5-
release: 0.3.0
4+
version: 0.3.2
5+
release: 0.3.1
66
dependencies:
77
- ordereddict;python_version<"2.7"
88
extra_dependencies:

pyexcel_io/sheet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, sheet,
3030
start_row=0, row_limit=-1,
3131
start_column=0, column_limit=-1,
3232
skip_row_func=None, skip_column_func=None,
33-
skip_empty_rows=True, row_renderer=None,
33+
skip_empty_rows=False, row_renderer=None,
3434
**keywords):
3535
self._native_sheet = sheet
3636
self._keywords = {}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
NAME = 'pyexcel-io'
1212
AUTHOR = 'C.W.'
13-
VERSION = '0.3.1'
13+
VERSION = '0.3.2'
1414
EMAIL = 'wangc_2011 (at) hotmail.com'
1515
LICENSE = 'New BSD'
1616
DESCRIPTION = (

tests/test_django_book.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def test_empty_model(self):
264264
model = FakeDjangoModel()
265265
reader = DjangoModelReader(model)
266266
data = reader.to_array()
267-
eq_(list(data), [[]])
267+
eq_(list(data), [[], []])
268268

269269

270270
class TestMultipleModels:

tests/test_sql_book.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def test_sql(self):
460460
mysession = Session()
461461
sheet = SQLTableReader(mysession, Pyexcel)
462462
data = sheet.to_array()
463-
content = [[]]
463+
content = [[], []]
464464
# 'pyexcel' here is the table name
465465
assert list(data) == content
466466
mysession.close()

0 commit comments

Comments
 (0)