Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 69b58bc

Browse files
cool-RRroll
andauthored
Use chain.from_iterable in parsers/xlsx.py (#334)
Co-authored-by: roll <roll@users.noreply.github.com>
1 parent 9580d8d commit 69b58bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabulator/parsers/xlsx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def __process_merged_cells(self):
151151
merged_cell_range = str(merged_cell_range)
152152
self.__sheet.unmerge_cells(merged_cell_range)
153153
merged_rows = openpyxl.utils.rows_from_range(merged_cell_range)
154-
coordinates = list(chain(*merged_rows))
154+
coordinates = list(chain.from_iterable(merged_rows))
155155
value = self.__sheet[coordinates[0]].value
156156
for coordinate in coordinates:
157157
cell = self.__sheet[coordinate]

0 commit comments

Comments
 (0)