diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-05-27 08:25:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 08:25:55 -0600 |
commit | c556b42c648af0caf52b573106ee233ae98c7a47 (patch) | |
tree | 75afe081ae9c87323e38dd75c6a0efd4ba4fd467 /numpy | |
parent | 847119387dedec1ce7a85c1c0f29bcf86bc0348d (diff) | |
parent | af07eae470280f7f1d2c0e3963c553ae0a796a35 (diff) | |
download | numpy-c556b42c648af0caf52b573106ee233ae98c7a47.tar.gz |
Merge pull request #9168 from k-kapp/simplify-if-statement/master
MAINT: Simplify if statement
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/ma/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index d6b30ae2e..d9401fa1d 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -2935,7 +2935,7 @@ class MaskedArray(ndarray): Copies some attributes of obj to self. """ - if obj is not None and isinstance(obj, ndarray): + if isinstance(obj, ndarray): _baseclass = type(obj) else: _baseclass = ndarray |