@@ -254,8 +254,9 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilename(
254254 const char * filename /* decoded from the filesystem encoding */
255255 );
256256#if defined(MS_WINDOWS ) && !defined(Py_LIMITED_API )
257+ Py_DEPRECATED (3.3 )
257258PyAPI_FUNC (PyObject * ) PyErr_SetFromErrnoWithUnicodeFilename (
258- PyObject * , const Py_UNICODE * ) Py_DEPRECATED ( 3.3 ) ;
259+ PyObject * , const Py_UNICODE * );
259260#endif /* MS_WINDOWS */
260261
261262PyAPI_FUNC (PyObject * ) PyErr_Format (
@@ -288,8 +289,9 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(
288289 );
289290#ifndef Py_LIMITED_API
290291/* XXX redeclare to use WSTRING */
292+ Py_DEPRECATED (3.3 )
291293PyAPI_FUNC (PyObject * ) PyErr_SetFromWindowsErrWithUnicodeFilename (
292- int , const Py_UNICODE * ) Py_DEPRECATED ( 3.3 ) ;
294+ int , const Py_UNICODE * );
293295#endif
294296PyAPI_FUNC (PyObject * ) PyErr_SetFromWindowsErr (int );
295297PyAPI_FUNC (PyObject * ) PyErr_SetExcFromWindowsErrWithFilenameObject (
@@ -304,8 +306,9 @@ PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithFilename(
304306 const char * filename /* decoded from the filesystem encoding */
305307 );
306308#ifndef Py_LIMITED_API
309+ Py_DEPRECATED (3.3 )
307310PyAPI_FUNC (PyObject * ) PyErr_SetExcFromWindowsErrWithUnicodeFilename (
308- PyObject * ,int , const Py_UNICODE * ) Py_DEPRECATED ( 3.3 ) ;
311+ PyObject * ,int , const Py_UNICODE * );
309312#endif
310313PyAPI_FUNC (PyObject * ) PyErr_SetExcFromWindowsErr (PyObject * , int );
311314#endif /* MS_WINDOWS */
@@ -402,25 +405,25 @@ PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_Create(
402405
403406/* create a UnicodeEncodeError object */
404407#ifndef Py_LIMITED_API
405- PyAPI_FUNC (PyObject * ) PyUnicodeEncodeError_Create (
408+ Py_DEPRECATED ( 3.3 ) PyAPI_FUNC (PyObject * ) PyUnicodeEncodeError_Create (
406409 const char * encoding , /* UTF-8 encoded string */
407410 const Py_UNICODE * object ,
408411 Py_ssize_t length ,
409412 Py_ssize_t start ,
410413 Py_ssize_t end ,
411414 const char * reason /* UTF-8 encoded string */
412- ) Py_DEPRECATED ( 3.3 ) ;
415+ );
413416#endif
414417
415418/* create a UnicodeTranslateError object */
416419#ifndef Py_LIMITED_API
417- PyAPI_FUNC (PyObject * ) PyUnicodeTranslateError_Create (
420+ Py_DEPRECATED ( 3.3 ) PyAPI_FUNC (PyObject * ) PyUnicodeTranslateError_Create (
418421 const Py_UNICODE * object ,
419422 Py_ssize_t length ,
420423 Py_ssize_t start ,
421424 Py_ssize_t end ,
422425 const char * reason /* UTF-8 encoded string */
423- ) Py_DEPRECATED ( 3.3 ) ;
426+ );
424427PyAPI_FUNC (PyObject * ) _PyUnicodeTranslateError_Create (
425428 PyObject * object ,
426429 Py_ssize_t start ,
0 commit comments