File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1273,34 +1273,25 @@ Exception types
12731273OSError aliases
12741274---------------
12751275
1276- The following are a compatibility aliases to :c:data: `PyExc_OSError `.
1276+ The following are :term: `soft deprecated ` compatibility aliases
1277+ to :c:data: `PyExc_OSError `.
12771278
1278- .. versionchanged :: 3.3
1279- These aliases used to be separate exception types.
1279+ .. c :var :: PyObject *PyExc_EnvironmentError
12801280
1281- .. list-table ::
1282- :align: left
1283- :widths: auto
1284- :header-rows: 1
1281+ .. soft-deprecated :: next
1282+ Use :c:data: `PyExc_OSError ` instead.
12851283
1286- * * C name
1287- * Python name
1288- * Notes
1289- * * .. c:var: : PyObject *PyExc_EnvironmentError
1290- * :exc:`OSError`
1291- *
1292- * * .. c:var:: PyObject *PyExc_IOError
1293- * :exc:`OSError`
1294- *
1295- * * .. c:var:: PyObject *PyExc_WindowsError
1296- * :exc:`OSError`
1297- * [win]_
1284+ .. c :var :: PyObject *PyExc_IOError
1285+
1286+ .. soft-deprecated :: next
1287+ Use :c:data: `PyExc_OSError ` instead.
1288+
1289+ .. c :var :: PyObject *PyExc_WindowsError
12981290
1299- Notes:
1291+ .. availability :: Windows
13001292
1301- .. [win ]
1302- :c:var: `!PyExc_WindowsError ` is only defined on Windows; protect code that
1303- uses this by testing that the preprocessor macro ``MS_WINDOWS `` is defined.
1293+ .. soft-deprecated :: next
1294+ Use :c:data: `PyExc_OSError ` instead.
13041295
13051296
13061297.. _standardwarningcategories :
You can’t perform that action at this time.
0 commit comments