From 505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Fri, 19 Jun 2015 19:54:15 -0600 Subject: MAINT: Mark deprecation warning with a date and Numpy version. This is to make it easier to find and remove deprecated features. It would be a good idea if all deprecations were made with similar comments. --- numpy/core/arrayprint.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/arrayprint.py') diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 2dc56928c..1fa0849a8 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -291,6 +291,7 @@ def _array2string(a, max_line_width, precision, suppress_small, separator=' ', msg = "The `_format` attribute is deprecated in Numpy 2.0 and " \ "will be removed in 2.1. Use the `formatter` kw instead." import warnings + # 2011-04-03, RemoveMe warnings.warn(msg, DeprecationWarning) except AttributeError: # find the right formatting function for the array @@ -446,6 +447,7 @@ def array2string(a, max_line_width=None, precision=None, "2.0 and will be removed in 2.1. Use the " \ "`formatter` kw instead." import warnings + # 2012-05-11, RemoveMe warnings.warn(msg, DeprecationWarning) except AttributeError: if isinstance(x, tuple): -- cgit v1.2.1