Skip to content

Commit 29452a0

Browse files
committed
add list() for python3
- `range()` was resulting in an `obj` in python3 where a `list` was needed
1 parent f5badba commit 29452a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3888,7 +3888,7 @@ def get_table_font_color(self):
38883888
if len(self.font_colors) == 1:
38893889
all_font_colors = self.font_colors*len(self.table_text)
38903890
elif len(self.font_colors) == 3:
3891-
all_font_colors = range(len(self.table_text))
3891+
all_font_colors = list(range(len(self.table_text)))
38923892
all_font_colors[0] = self.font_colors[0]
38933893
for i in range(1, len(self.table_text), 2):
38943894
all_font_colors[i] = self.font_colors[1]

0 commit comments

Comments
 (0)