8000 Merge pull request #8166 from matthew-brett/master · matplotlib/matplotlib@c2f675d · GitHub
[go: up one dir, main page]

Skip to content

Commit c2f675d

Browse files
authored
Merge pull request #8166 from matthew-brett/master
MAINT: mappingview check for Python 3.4
2 parents 72cea62 + dfce0b2 commit c2f675d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,9 +2281,7 @@ def safe_first_element(obj):
22812281

22822282
def sanitize_sequence(data):
22832283
"""Converts dictview object to list"""
2284-
if six.PY3 and isinstance(data, collections.abc.MappingView):
2285-
return list(data)
2286-
return data
2284+
return list(data) if isinstance(data, collections.MappingView) else data
22872285

22882286

22892287
def normalize_kwargs(kw, alias_mapping=None, required=(), forbidden=(),

0 commit comments

Comments
 (0)
0