diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-08-05 12:09:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 12:09:23 -0500 |
commit | bfe43b26969231cfe8196868280c07f0c0aa8f50 (patch) | |
tree | 88ad7478e033ce5980a365a479e22b78ba1cecaa /numpy/lib/arraysetops.py | |
parent | 5ab02b15de72fa00d785f49c62466fe048264cc4 (diff) | |
parent | 2b781f8967488dc007f8f0a1e6a7f49208788d12 (diff) | |
download | numpy-bfe43b26969231cfe8196868280c07f0c0aa8f50.tar.gz |
Merge pull request #9517 from charris/rebase-9508
MAINT/DOC: Use builtin when np.{x} is builtins.{x}.
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index aa3a05e12..ededb9dd0 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -451,11 +451,11 @@ def in1d(ar1, ar2, assume_unique=False, invert=False): # This code is significantly faster when the condition is satisfied. if len(ar2) < 10 * len(ar1) ** 0.145: if invert: - mask = np.ones(len(ar1), dtype=np.bool) + mask = np.ones(len(ar1), dtype=bool) for a in ar2: mask &= (ar1 != a) else: - mask = np.zeros(len(ar1), dtype=np.bool) + mask = np.zeros(len(ar1), dtype=bool) for a in ar2: mask |= (ar1 == a) return mask |