Skip to content

Commit 89592cd

Browse files
committed
PY3 fix. Can’t index a .keys() view.
1 parent dab5d37 commit 89592cd

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
@@ -3282,7 +3282,7 @@ def get_color_dict(self, colorscale):
32823282
'rgb(255,220,0)'] # yellow
32833283

32843284
for i in range(len(default_colors.keys())):
3285-
k = default_colors.keys()[i]
3285+
k = list(default_colors.keys())[i] # PY3 won't index keys
32863286
if i < len(colorscale):
32873287
default_colors[k] = colorscale[i]
32883288

0 commit comments

Comments
 (0)