Skip to content

Commit 788ef54

Browse files
authored
GH-92431: Fix footnotes in Doc/c-api/exceptions.rst (GH-92432)
* Remove redundant footnote ref: the footnote has been removed * Fix footnote ref to match footnote * Convert footnotes into reST footnotes: will error if missing
1 parent 5639ea1 commit 788ef54

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
@@ -909,11 +909,11 @@ the variables:
909909
+-----------------------------------------+---------------------------------+----------+
910910
| C Name | Python Name | Notes |
911911
+=========================================+=================================+==========+
912-
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | \(1) |
912+
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
913913
+-----------------------------------------+---------------------------------+----------+
914-
| :c:data:`PyExc_Exception` | :exc:`Exception` | \(1) |
914+
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
915915
+-----------------------------------------+---------------------------------+----------+
916-
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | \(1) |
916+
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
917917
+-----------------------------------------+---------------------------------+----------+
918918
| :c:data:`PyExc_AssertionError` | :exc:`AssertionError` | |
919919
+-----------------------------------------+---------------------------------+----------+
@@ -959,7 +959,7 @@ the variables:
959959
+-----------------------------------------+---------------------------------+----------+
960960
| :c:data:`PyExc_KeyboardInterrupt` | :exc:`KeyboardInterrupt` | |
961961
+-----------------------------------------+---------------------------------+----------+
962-
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | \(1) |
962+
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | [1]_ |
963963
+-----------------------------------------+---------------------------------+----------+
964964
| :c:data:`PyExc_MemoryError` | :exc:`MemoryError` | |
965965
+-----------------------------------------+---------------------------------+----------+
@@ -971,7 +971,7 @@ the variables:
971971
+-----------------------------------------+---------------------------------+----------+
972972
| :c:data:`PyExc_NotImplementedError` | :exc:`NotImplementedError` | |
973973
+-----------------------------------------+---------------------------------+----------+
974-
| :c:data:`PyExc_OSError` | :exc:`OSError` | \(1) |
974+
| :c:data:`PyExc_OSError` | :exc:`OSError` | [1]_ |
975975
+-----------------------------------------+---------------------------------+----------+
976976
| :c:data:`PyExc_OverflowError` | :exc:`OverflowError` | |
977977
+-----------------------------------------+---------------------------------+----------+
@@ -981,7 +981,7 @@ the variables:
981981
+-----------------------------------------+---------------------------------+----------+
982982
| :c:data:`PyExc_RecursionError` | :exc:`RecursionError` | |
983983
+-----------------------------------------+---------------------------------+----------+
984-
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | \(2) |
984+
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | |
985985
+-----------------------------------------+---------------------------------+----------+
986986
| :c:data:`PyExc_RuntimeError` | :exc:`RuntimeError` | |
987987
+-----------------------------------------+---------------------------------+----------+
@@ -1046,18 +1046,18 @@ These are compatibility aliases to :c:data:`PyExc_OSError`:
10461046
+-------------------------------------+----------+
10471047
| :c:data:`PyExc_IOError` | |
10481048
+-------------------------------------+----------+
1049-
| :c:data:`PyExc_WindowsError` | \(3) |
1049+
| :c:data:`PyExc_WindowsError` | [2]_ |
10501050
+-------------------------------------+----------+
10511051
10521052
.. versionchanged:: 3.3
10531053
These aliases used to be separate exception types.
10541054
10551055
Notes:
10561056
1057-
(1)
1057+
.. [1]
10581058
This is a base class for other standard exceptions.
10591059
1060-
(2)
1060+
.. [2]
10611061
Only defined on Windows; protect code that uses this by testing that the
10621062
preprocessor macro ``MS_WINDOWS`` is defined.
10631063
@@ -1087,7 +1087,7 @@ the variables:
10871087
+------------------------------------------+---------------------------------+----------+
10881088
| C Name | Python Name | Notes |
10891089
+==========================================+=================================+==========+
1090-
| :c:data:`PyExc_Warning` | :exc:`Warning` | \(1) |
1090+
| :c:data:`PyExc_Warning` | :exc:`Warning` | [3]_ |
10911091
+------------------------------------------+---------------------------------+----------+
10921092
| :c:data:`PyExc_BytesWarning` | :exc:`BytesWarning` | |
10931093
+------------------------------------------+---------------------------------+----------+
@@ -1115,5 +1115,5 @@ the variables:
11151115
11161116
Notes:
11171117
1118-
(1)
1118+
.. [3]
11191119
This is a base class for other standard warning categories.

0 commit comments

Comments
 (0)