@@ -3733,7 +3733,8 @@ PyUnicode_AsDecodedObject(PyObject *unicode,
3733
3733
}
3734
3734
3735
3735
if (PyErr_WarnEx (PyExc_DeprecationWarning ,
3736
- "PyUnicode_AsDecodedObject() is deprecated; "
3736
+ "PyUnicode_AsDecodedObject() is deprecated "
3737
+ "and will be removed in 3.15; "
3737
3738
"use PyCodec_Decode() to decode from str" , 1 ) < 0 )
3738
3739
return NULL ;
3739
3740
@@ -3757,7 +3758,8 @@ PyUnicode_AsDecodedUnicode(PyObject *unicode,
3757
3758
}
3758
3759
3759
3760
if (PyErr_WarnEx (PyExc_DeprecationWarning ,
3760
- "PyUnicode_AsDecodedUnicode() is deprecated; "
3761
+ "PyUnicode_AsDecodedUnicode() is deprecated "
3762
+ "and will be removed in 3.15; "
3761
3763
"use PyCodec_Decode() to decode from str to str" , 1 ) < 0 )
3762
3764
return NULL ;
3763
3765
@@ -3796,7 +3798,8 @@ PyUnicode_AsEncodedObject(PyObject *unicode,
3796
3798
}
3797
3799
3798
3800
if (PyErr_WarnEx (PyExc_DeprecationWarning ,
3799
- "PyUnicode_AsEncodedObject() is deprecated; "
3801
+ "PyUnicode_AsEncodedObject() is deprecated "
3802
+ "and will be removed in 3.15; "
3800
3803
"use PyUnicode_AsEncodedString() to encode from str to bytes "
3801
3804
"or PyCodec_Encode() for generic encoding" , 1 ) < 0 )
3802
3805
return NULL ;
@@ -4019,7 +4022,8 @@ PyUnicode_AsEncodedUnicode(PyObject *unicode,
4019
4022
}
4020
4023
4021
4024
if (PyErr_WarnEx (PyExc_DeprecationWarning ,
4022
- "PyUnicode_AsEncodedUnicode() is deprecated; "
4025
+ "PyUnicode_AsEncodedUnicode() is deprecated "
4026
+ "and will be removed in 3.15; "
4023
4027
"use PyCodec_Encode() to encode from str to str" , 1 ) < 0 )
4024
4028
return NULL ;
4025
4029
0 commit comments