Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d216f4

Browse files
committed
Remove dependency on six
1 parent e13c59c commit 2d216f4

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ https://semver.org/spec/v2.0.0.html
1212

1313
## [Unreleased]
1414

15+
### Removed
16+
- Remove dependency on `six` (solves issue [#536]).
17+
1518
## [1.3.2] - 2022-02-10
1619

1720
### Added
@@ -889,6 +892,8 @@ https://semver.org/spec/v2.0.0.html
889892
- Fix glitches in drawing of parallels and meridians.
890893

891894

895+
[#536]:
896+
https://github.com/matplotlib/basemap/issues/536
892897
[#533]:
893898
https://github.com/matplotlib/basemap/issues/533
894899
[#532]:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Basic requirements are the following:
1212
* [numpy](https://github.com/numpy/numpy)
1313
* [pyproj](https://github.com/pyproj4/pyproj)
1414
* [pyshp](https://github.com/GeospatialPython/pyshp)
15-
* [six](https://github.com/benjaminp/six)
1615

1716
Optional requirements include:
1817

packages/basemap/.pylintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ init-import=no
413413

414414
# List of qualified module names which can have objects that can redefine
415415
# builtins.
416-
redefining-builtins-modules=six.moves,
417-
past.builtins,
416+
redefining-builtins-modules=past.builtins,
418417
future.builtins,
419418
builtins,
420419
io

packages/basemap/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
basemap_data >= 1.3, < 1.4
22

3-
six >= 1.10, < 1.16
4-
53
numpy >= 1.11, < 1.12; python_version == "2.6"
64
numpy >= 1.16, < 1.17; python_version == "2.7"
75
numpy >= 1.11, < 1.12; python_version == "3.2"

packages/basemap/src/mpl_toolkits/basemap/cm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
Run `examples/show_colormaps.py` to see what these colormaps look like.
1515
"""
1616

17-
from six import iteritems
18-
1917
from matplotlib import rcParams, colors
2018
_LUTSIZE = rcParams['image.lut']
2119

@@ -76,7 +74,7 @@
7674
def _revcmap(data):
7775

7876
data_r = {}
79-
for key, val in iteritems(data):
77+
for key, val in data.items():
8078
val = list(val)
8179
valrev = val[::-1]
8280
valnew = []

0 commit comments

Comments
 (0)