8000 [3.10] GH-92431: Fix footnotes in Doc/c-api/exceptions.rst (GH-92432… · python/cpython@f40731f · GitHub
[go: up one dir, main page]

Skip to content

Commit f40731f

Browse files
[3.10] GH-92431: Fix footnotes in Doc/c-api/exceptions.rst (GH-92432) (GH-92470)
* 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 <hugovk@users.noreply.github.com> Automerge-Triggered-By: GH:serhiy-storchaka
1 parent a7d869a commit f40731f

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
@@ -889,11 +889,11 @@ the variables:
889889
+-----------------------------------------+---------------------------------+----------+
890890
| C Name | Python Name | Notes |
891891
+=========================================+=================================+==========+
892-
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | \(1) |
892+
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
893893
+-----------------------------------------+---------------------------------+----------+
894-
| :c:data:`PyExc_Exception` | :exc:`Exception` | \(1) |
894+
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
895895
+-----------------------------------------+---------------------------------+----------+
896-
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | \(1) |
896+
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
897897
+-----------------------------------------+---------------------------------+----------+
898898
| :c:data:`PyExc_AssertionError` | :exc:`AssertionError` | |
899899
+-----------------------------------------+---------------------------------+----------+
@@ -939,7 +939,7 @@ the variables:
939939
+-----------------------------------------+---------------------------------+----------+
940940
| :c:data:`PyExc_KeyboardInterrupt` | :exc:`KeyboardInterrupt` | |
941941
+-----------------------------------------+---------------------------------+----------+
942-
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | \(1) |
942+
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | [1]_ |
943943
+-----------------------------------------+---------------------------------+----------+
944944
| :c:data:`PyExc_MemoryError` | :exc:`MemoryError` | |
945945
+-----------------------------------------+---------------------------------+----------+
@@ -951,7 +951,7 @@ the variables:
951951
+-----------------------------------------+---------------------------------+----------+
952952
| :c:data:`PyExc_NotImplementedError` | :exc:`NotImplementedError` | |
953953
+-----------------------------------------+---------------------------------+----------+
954-
| :c:data:`PyExc_OSError` | :exc:`OSError` | \(1) |
954+
| :c:data:`PyExc_OSError` | :exc:`OSError` | [1]_ |
955955
+-----------------------------------------+---------------------------------+----------+
956956
| :c:data:`PyExc_OverflowError` | :exc:`OverflowError` | |
957957
+-----------------------------------------+---------------------------------+----------+
@@ -961,7 +961,7 @@ the variables:
961961
+-----------------------------------------+---------------------------------+----------+
962962
| :c:data:`PyExc_RecursionError` | :exc:`RecursionError` | |
963963
+-----------------------------------------+---------------------------------+----------+
964-
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | \(2) |
964+
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | |
965965
+-----------------------------------------+---------------------------------+----------+
966966
| :c:data:`PyExc_RuntimeError` | :exc:`RuntimeError` | |
967967
+-----------------------------------------+---------------------------------+----------+
@@ -1026,18 +1026,18 @@ These are compatibility aliases to :c:data:`PyExc_OSError`:
10261026
+-------------------------------------+----------+
10271027
| :c:data:`PyExc_IOError` | |
10281028
+-------------------------------------+----------+
1029-
| :c:data:`PyExc_WindowsError` | \(3) |
1029+
| :c:data:`PyExc_WindowsError` | [2]_ |
10301030
+-------------------------------------+----------+
10311031
10321032
.. versionchanged:: 3.3
10331033
These aliases used to be separate exception types.
10341034
10351035
Notes:
10361036
1037-
(1)
1037+
.. [1]
10381038
This is a base class for other standard exceptions.
10391039
1040-
(2)
1040+
.. [2]
10411041
Only defined on Windows; protect code that uses this by testing that the
10421042
preprocessor macro ``MS_WINDOWS`` is defined.
10431043
@@ -1067,7 +1067,7 @@ the variables:
10671067
+------------------------------------------+---------------------------------+----------+
10681068
| C Name | Python Name | Notes |
10691069
+==========================================+=================================+==========+
1070-
| :c:data:`PyExc_Warning` | :exc:`Warning` | \(1) |
1070+
| :c:data:`PyExc_Warning` | :exc:`Warning` | [3]_ |
10711071
+------------------------------------------+---------------------------------+----------+
10721072
| :c:data:`PyExc_BytesWarning` | :exc:`BytesWarning` | |
10731073
+------------------------------------------+---------------------------------+----------+
@@ -1095,5 +1095,5 @@ the variables:
10951095
10961096
Notes:
10971097
1098-
(1)
1098+
.. [3]
10991099
This is a base class for other standard warning categories.

0 commit comments

Comments
 (0)
0