Skip to content

Commit 866032f

Browse files
committed
need a copy to avoid dict change
1 parent ffe7be3 commit 866032f

File tree

1 file changed

+1
-1
lines changed
  • lib/mpl_toolkits/basemap

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/basemap/cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _revcmap(data):
8181
data_r[key]=valnew
8282
return data_r
8383

84-
_cmapnames = datad.keys()
84+
_cmapnames = list(datad.keys())
8585
for _cmapname in _cmapnames:
8686
_cmapname_r = _cmapname+'_r'
8787
_cmapdat_r = _revcmap(datad[_cmapname])

0 commit comments

Comments
 (0)