Skip to content

Commit

Permalink
Removed data_only handling for styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKobus committed Mar 30, 2018
1 parent 58fd9e0 commit c0b10df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpyxl/reader/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def parse_cell(self, element):
style_id = element.get('s')

# assign formula to cell value unless only the data is desired
if formula is not None and not self.data_only:
if formula is not None:
data_type = 'f'
if formula.text:
value = "=" + formula.text
Expand Down Expand Up @@ -205,7 +205,7 @@ def parse_cell(self, element):


style_array = None
if not self.data_only and style_id is not None:
if style_id is not None:
style_id = int(style_id)
style_array = self.styles[style_id]

Expand Down

0 comments on commit c0b10df

Please sign in to comment.