Skip to content

Commit 15b6a5e

Browse files
committed
code optimization
1 parent f3c1c54 commit 15b6a5e

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

pyexcel_xls/xls.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def number_of_columns(self):
8787
"""
8888
return self.native_sheet.ncols
8989

90-
def cell_value(self, row, column):
90+
def _cell_value(self, row, column):
9191
"""
9292
Random access to the xls cells
9393
"""
@@ -100,27 +100,6 @@ def cell_value(self, row, column):
100100
value = int(value)
101101
return value
102102

103-
def to_array(self):
104-
for row in range(0, self.number_of_rows()):
105-
if self.skip_row(row, self.start_row, self.row_limit):
106-
continue
107-
108-
return_row = []
109-
tmp_row = []
110-
for column in range(0, self.number_of_columns()):
111-
skip_column = self.skip_column(column,
112-
self.start_column,
113-
self.column_limit)
114-
if skip_column:
115-
continue
116-
117-
cell_value = self.cell_value(row, column)
118-
tmp_row.append(cell_value)
119-
if cell_value is not None and cell_value != '':
120-
return_row += tmp_row
121-
tmp_row = []
122-
yield return_row
123-
124103

125104
class XLSBook(BookReader):
126105
"""

0 commit comments

Comments
 (0)