Skip to content

Commit 7fd4e65

Browse files
[3.9] GH-92431: Fix footnotes in Doc/c-api/exceptions.rst (GH-92432) (GH-92471)
* Remove redundant footnote ref: the footnote has been removed * Fix footnote ref to match footnote * Convert footnotes into reST footnotes: will error if missing (cherry picked from commit 788ef54) Co-authored-by: Hugo van Kemenade <[email protected]> Automerge-Triggered-By: GH:serhiy-storchaka
1 parent bab6954 commit 7fd4e65

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Doc/c-api/exceptions.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,11 @@ the variables:
845845
+-----------------------------------------+---------------------------------+----------+
846846
| C Name | Python Name | Notes |
847847
+=========================================+=================================+==========+
848-
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | \(1) |
848+
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
849849
+-----------------------------------------+---------------------------------+----------+
850-
| :c:data:`PyExc_Exception` | :exc:`Exception` | \(1) |
850+
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
851851
+-----------------------------------------+---------------------------------+----------+
852-
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | \(1) |
852+
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
853853
+-----------------------------------------+---------------------------------+----------+
854854
| :c:data:`PyExc_AssertionError` | :exc:`AssertionError` | |
855855
+-----------------------------------------+---------------------------------+----------+
@@ -895,7 +895,7 @@ the variables:
895895
+-----------------------------------------+---------------------------------+----------+
896896
| :c:data:`PyExc_KeyboardInterrupt` | :exc:`KeyboardInterrupt` | |
897897
+-----------------------------------------+---------------------------------+----------+
898-
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | \(1) |
898+
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | [1]_ |
899899
+-----------------------------------------+---------------------------------+----------+
900900
| :c:data:`PyExc_MemoryError` | :exc:`MemoryError` | |
901901
+-----------------------------------------+---------------------------------+----------+
@@ -907,7 +907,7 @@ the variables:
907907
+-----------------------------------------+---------------------------------+----------+
908908
| :c:data:`PyExc_NotImplementedError` | :exc:`NotImplementedError` | |
909909
+-----------------------------------------+---------------------------------+----------+
910-
| :c:data:`PyExc_OSError` | :exc:`OSError` | \(1) |
910+
| :c:data:`PyExc_OSError` | :exc:`OSError` | [1]_ |
911911
+-----------------------------------------+---------------------------------+----------+
912912
| :c:data:`PyExc_OverflowError` | :exc:`OverflowError` | |
913913
+-----------------------------------------+---------------------------------+----------+
@@ -917,7 +917,7 @@ the variables:
917917
+-----------------------------------------+---------------------------------+----------+
918918
| :c:data:`PyExc_RecursionError` | :exc:`RecursionError` | |
919919
+-----------------------------------------+---------------------------------+----------+
920-
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | \(2) |
920+
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | |
921921
+-----------------------------------------+---------------------------------+----------+
922922
| :c:data:`PyExc_RuntimeError` | :exc:`RuntimeError` | |
923923
+-----------------------------------------+---------------------------------+----------+
@@ -982,18 +982,18 @@ These are compatibility aliases to :c:data:`PyExc_OSError`:
982982
+-------------------------------------+----------+
983983
| :c:data:`PyExc_IOError` | |
984984
+-------------------------------------+----------+
985-
| :c:data:`PyExc_WindowsError` | \(3) |
985+
| :c:data:`PyExc_WindowsError` | [2]_ |
986986
+-------------------------------------+----------+
987987
988988
.. versionchanged:: 3.3
989989
These aliases used to be separate exception types.
990990
991991
Notes:
992992
993-
(1)
993+
.. [1]
994994
This is a base class for other standard exceptions.
995995
996-
(2)
996+
.. [2]
997997
Only defined on Windows; protect code that uses this by testing that the
998998
preprocessor macro ``MS_WINDOWS`` is defined.
999999
@@ -1023,7 +1023,7 @@ the variables:
10231023
+------------------------------------------+---------------------------------+----------+
10241024
| C Name | Python Name | Notes |
10251025
+==========================================+=================================+==========+
1026-
| :c:data:`PyExc_Warning` | :exc:`Warning` | \(1) |
1026+
| :c:data:`PyExc_Warning` | :exc:`Warning` | [3]_ |
10271027
+------------------------------------------+---------------------------------+----------+
10281028
| :c:data:`PyExc_BytesWarning` | :exc:`BytesWarning` | |
10291029
+------------------------------------------+---------------------------------+----------+
@@ -1051,5 +1051,5 @@ the variables:
10511051
10521052
Notes:
10531053
1054-
(1)
1054+
.. [3]
10551055
This is a base class for other standard warning categories.

0 commit comments

Comments
 (0)