Skip to content

Commit 6b086e0

Browse files
authored
Merge pull request #99 from MatthewFlamm/patch-1
numpy 2.0 compatibility np.unicode_
2 parents 4e68f84 + 713a594 commit 6b086e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmocean/tools.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
import matplotlib as mpl
99

1010

11-
if sys.version_info > (3,):
12-
_string_types = (str, np.str_, np.unicode_)
13-
else:
14-
_string_types = (basestring, np.str_, np.unicode_)
11+
_string_types = (str, np.str_)
1512

1613

1714
def print_colormaps(cmaps, N=256, returnrgb=True, savefiles=False):

0 commit comments

Comments
 (0)