summaryrefslogtreecommitdiff
path: root/numpy/ma
diff options
context:
space:
mode:
authordefault-303 <ajayds2001@gmail.com>2021-05-26 18:36:36 +0530
committerdefault-303 <ajayds2001@gmail.com>2021-05-26 18:36:36 +0530
commitbeacb394e94a517d1c84f8a50f9e18f3bf11ced5 (patch)
tree0d22a43c5f336847c8cf8186808ea34bf0ff272b /numpy/ma
parentb30318a031624e17b01ffa5f82853c24c5111f32 (diff)
downloadnumpy-beacb394e94a517d1c84f8a50f9e18f3bf11ced5.tar.gz
MAINT: Removed 'if' block which served no purpose in core.py and removed '_linalgRealType(t)' function from linalg.py
Diffstat (limited to 'numpy/ma')
-rw-r--r--numpy/ma/core.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 03963d6c7..49b7bb3ab 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -2839,13 +2839,6 @@ class MaskedArray(ndarray):
_data = ndarray.view(_data, type(data))
else:
_data = ndarray.view(_data, cls)
- # Backwards compatibility w/ numpy.core.ma.
- if hasattr(data, '_mask') and not isinstance(data, ndarray):
- _data._mask = data._mask
- # FIXME: should we set `_data._sharedmask = True`?
- # Previously this set `_sharedmask = True`, but
- # that didn't actually do anything as the variable was unused!
-
# Process mask.
# Type of the mask
mdtype = make_mask_descr(_data.dtype)