summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-06-19 19:54:15 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-06-21 12:43:06 -0600
commit505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51 (patch)
treeb1141ad866027a2e053f750c918fd4eb52a7fb21 /numpy/core/arrayprint.py
parentf6861923209df65d9c4253368061072eda67ea77 (diff)
downloadnumpy-505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51.tar.gz
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.
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py2
1 files changed, 2 insertions, 0 deletions
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):