Skip to content

Commit 356f596

Browse files
[3.12] gh-101100: Fix Sphinx warnings in library/bisect.rst (GH-113496) (#113504)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent a3f53a0 commit 356f596

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Doc/library/bisect.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ linear searches or frequent resorting.
1919
The module is called :mod:`bisect` because it uses a basic bisection
2020
algorithm to do its work. Unlike other bisection tools that search for a
2121
specific value, the functions in this module are designed to locate an
22-
insertion point. Accordingly, the functions never call an :meth:`__eq__`
22+
insertion point. Accordingly, the functions never call an :meth:`~object.__eq__`
2323
method to determine whether a value has been found. Instead, the
24-
functions only call the :meth:`__lt__` method and will return an insertion
24+
functions only call the :meth:`~object.__lt__` method and will return an insertion
2525
point between values in an array.
2626

2727
.. _bisect functions:
@@ -73,7 +73,7 @@ The following functions are provided:
7373
Insert *x* in *a* in sorted order.
7474

7575
This function first runs :py:func:`~bisect.bisect_left` to locate an insertion point.
76-
Next, it runs the :meth:`insert` method on *a* to insert *x* at the
76+
Next, it runs the :meth:`!insert` method on *a* to insert *x* at the
7777
appropriate position to maintain sort order.
7878

7979
To support inserting records in a table, the *key* function (if any) is
@@ -93,7 +93,7 @@ The following functions are provided:
9393
entries of *x*.
9494

9595
This function first runs :py:func:`~bisect.bisect_right` to locate an insertion point.
96-
Next, it runs the :meth:`insert` method on *a* to insert *x* at the
96+
Next, it runs the :meth:`!insert` method on *a* to insert *x* at the
9797
appropriate position to maintain sort order.
9898

9999
To support inserting records in a table, the *key* function (if any) is

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Doc/library/asyncio-subprocess.rst
3535
Doc/library/asyncio-task.rst
3636
Doc/library/audioop.rst
3737
Doc/library/bdb.rst
38-
Doc/library/bisect.rst
3938
Doc/library/calendar.rst
4039
Doc/library/cgi.rst
4140
Doc/library/chunk.rst

0 commit comments

Comments
 (0)