Skip to content

Commit 22127a8

Browse files
Merge pull request #3981 from CompRhys/patch-1-iteritems
refactor: dict.iteritems() is deprecated
2 parents 3192ea8 + 5b6eca1 commit 22127a8

File tree

2 files changed

+2
-2
lines changed
  • packages/python

2 files changed

+2
-2
lines changed

packages/python/chart-studio/chart_studio/plotly/plotly.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def _swap_xy_data(data_obj):
430430
def byteify(input):
431431
"""Convert unicode strings in JSON object to byte strings"""
432432
if isinstance(input, dict):
433-
return {byteify(key): byteify(value) for key, value in input.iteritems()}
433+
return {byteify(key): byteify(value) for key, value in input.items()}
434434
elif isinstance(input, list):
435435
return [byteify(element) for element in input]
436436
elif isinstance(input, unicode):

packages/python/plotly/plotly/express/_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
278278
if attr_name == "dimensions":
279279
dims = [
280280
(name, column)
281-
for (name, column) in trace_data.iteritems()
281+
for (name, column) in trace_data.items()
282282
if ((not attr_value) or (name in attr_value))
283283
and (
284284
trace_spec.constructor != go.Parcoords

0 commit comments

Comments
 (0)