@@ -109,7 +109,7 @@ const char *PyFT2Image_as_str__doc__ =
109
109
110
110
static PyObject *PyFT2Image_as_str (PyFT2Image *self, PyObject *args, PyObject *kwds)
111
111
{
112
- if (PyErr_WarnEx (PyExc_DeprecationWarning ,
112
+ if (PyErr_WarnEx (PyExc_FutureWarning ,
113
113
" FT2Image.as_str is deprecated since Matplotlib 3.2 and "
114
114
" will be removed in Matplotlib 3.4; convert the FT2Image "
115
115
" to a NumPy array with np.asarray instead." ,
@@ -129,7 +129,7 @@ const char *PyFT2Image_as_rgba_str__doc__ =
129
129
130
130
static PyObject *PyFT2Image_as_rgba_str (PyFT2Image *self, PyObject *args, PyObject *kwds)
131
131
{
132
- if (PyErr_WarnEx (PyExc_DeprecationWarning ,
132
+ if (PyErr_WarnEx (PyExc_FutureWarning ,
133
133
" FT2Image.as_rgba_str is deprecated since Matplotlib 3.2 and "
134
134
" will be removed in Matplotlib 3.4; convert the FT2Image "
135
135
" to a NumPy array with np.asarray instead." ,
@@ -162,7 +162,7 @@ const char *PyFT2Image_as_array__doc__ =
162
162
163
163
static PyObject *PyFT2Image_as_array (PyFT2Image *self, PyObject *args, PyObject *kwds)
164
164
{
165
- if (PyErr_WarnEx (PyExc_DeprecationWarning ,
165
+ if (PyErr_WarnEx (PyExc_FutureWarning ,
166
166
" FT2Image.as_array is deprecated since Matplotlib 3.2 and "
167
167
" will be removed in Matplotlib 3.4; convert the FT2Image "
168
168
" to a NumPy array with np.asarray instead." ,
@@ -175,7 +175,7 @@ static PyObject *PyFT2Image_as_array(PyFT2Image *self, PyObject *args, PyObject
175
175
176
176
static PyObject *PyFT2Image_get_width (PyFT2Image *self, PyObject *args, PyObject *kwds)
177
177
{
178
- if (PyErr_WarnEx (PyExc_DeprecationWarning ,
178
+ if (PyErr_WarnEx (PyExc_FutureWarning ,
179
179
" FT2Image.get_width is deprecated since Matplotlib 3.2 and "
180
180
" will be removed in Matplotlib 3.4; convert the FT2Image "
181
181
" to a NumPy array with np.asarray instead." ,
@@ -187,7 +187,7 @@ static PyObject *PyFT2Image_get_width(PyFT2Image *self, PyObject *args, PyObject
187
187
188
188
static PyObject *PyFT2Image_get_height (PyFT2Image *self, PyObject *args, PyObject *kwds)
189
189
{
190
- if (PyErr_WarnEx (PyExc_DeprecationWarning ,
190
+ if (PyErr_WarnEx (PyExc_FutureWarning ,
191
191
" FT2Image.get_height is deprecated since Matplotlib 3.2 and "
192
192
" will be removed in Matplotlib 3.4; convert the FT2Image "
193
193
" to a NumPy array with np.asarray instead." ,
0 commit comments