Skip to content

Commit 150a9cf

Browse files
committed
yielding the data, the purpose of the 0.1.x branch
1 parent c83a590 commit 150a9cf

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ python:
1212
install:
1313
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install weakrefset; fi
1414
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi
15+
- pip install https://github.com/chfw/pyexcel/archive/master.zip
16+
- pip install https://github.com/chfw/pyexcel-io/archive/master.zip
1517
- pip install -r requirements.txt
1618
- pip install -r tests/requirements.txt
1719
script:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.12
1+
0.1.0-dev

pyexcel_ods3/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ def name(self):
101101
def to_array(self):
102102
"""reads a sheet in the sheet dictionary, storing each sheet
103103
as an array (rows) of arrays (columns)"""
104-
table = []
105104
for row in range(self.native_sheet.nrows()):
106105
row_data = []
107106
tmp_row = []
@@ -112,9 +111,7 @@ def to_array(self):
112111
row_data += tmp_row
113112
tmp_row = []
114113
if len(row_data) > 0:
115-
table.append(row_data)
116-
117-
return table
114+
yield row_data
118115

119116
def _read_cell(self, cell):
120117
cell_type = cell.value_type

0 commit comments

Comments
 (0)