Skip to content

Commit 2be2049

Browse files
committed
merge
2 parents 364f976 + 42dbdd9 commit 2be2049

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.github/workflows/codeql.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v2
30+
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
3333
queries: +security-and-quality
3434

3535
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v2
36+
uses: github/codeql-action/autobuild@v3
3737

3838
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v2
39+
uses: github/codeql-action/analyze@v3
4040
with:
4141
category: "/language:${{ matrix.language }}"

.github/workflows/test.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
2020
python-version: ["3.8", "3.9", "3.10"]
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Cache conda
24-
uses: actions/cache@v3
24+
uses: actions/cache@v4
2525
env:
2626
# Increase this value to reset cache if ci/environment.yml has not changed
2727
CACHE_NUMBER: 0
2828
with:
2929
path: ~/conda_pkgs_dir
3030
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment-py${{ matrix.python-version }}.yml') }}
31-
- uses: conda-incubator/setup-miniconda@v2
31+
- uses: conda-incubator/setup-miniconda@v3
3232
with:
3333
# mamba-version: "*" # activate this to build with mamba.
3434
python-version: ${{ matrix.python-version }}

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)