summaryrefslogtreecommitdiff
path: root/numpy/lib/recfunctions.py
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2022-07-16 07:35:32 -0500
committerTyler Reddy <tyler.je.reddy@gmail.com>2022-07-16 07:35:32 -0500
commit7ed97763c00d37591b5d298ffcbc2be407aff68c (patch)
treede430b3d94a382e2423cc706b2894fb080642c3c /numpy/lib/recfunctions.py
parentbdec32181605c8179fd79624d14c1cf019de75af (diff)
downloadnumpy-7ed97763c00d37591b5d298ffcbc2be407aff68c.tar.gz
MAINT: rm old warning
* if you believe the comments that this warning suppression should be safe to remove after `1.16`, then it should be safe to remove now?
Diffstat (limited to 'numpy/lib/recfunctions.py')
-rw-r--r--numpy/lib/recfunctions.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/lib/recfunctions.py b/numpy/lib/recfunctions.py
index 4a27c3286..74a8f8969 100644
--- a/numpy/lib/recfunctions.py
+++ b/numpy/lib/recfunctions.py
@@ -13,7 +13,6 @@ from numpy.ma import MaskedArray
from numpy.ma.mrecords import MaskedRecords
from numpy.core.overrides import array_function_dispatch
from numpy.lib._iotools import _is_string_like
-from numpy.testing import suppress_warnings
_check_fill_value = np.ma.core._check_fill_value
@@ -971,9 +970,7 @@ def structured_to_unstructured(arr, dtype=None, copy=False, casting='unsafe'):
'formats': dts,
'offsets': offsets,
'itemsize': arr.dtype.itemsize})
- with suppress_warnings() as sup: # until 1.16 (gh-12447)
- sup.filter(FutureWarning, "Numpy has detected")
- arr = arr.view(flattened_fields)
+ arr = arr.view(flattened_fields)
# next cast to a packed format with all fields converted to new dtype
packed_fields = np.dtype({'names': names,