From 7ed97763c00d37591b5d298ffcbc2be407aff68c Mon Sep 17 00:00:00 2001 From: Tyler Reddy Date: Sat, 16 Jul 2022 07:35:32 -0500 Subject: 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? --- numpy/lib/recfunctions.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'numpy/lib') 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, -- cgit v1.2.1