Skip to content

Commit 1138200

Browse files
mjbommarclaude
andcommitted
gh-151788: Fix NEWS entry doc reference
Drop the :meth: cross-reference to list_directory, which is not a documented method and fails the docs "new NEWS nits" check. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 57bc982 commit 1138200

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
:class:`http.server.SimpleHTTPRequestHandler` now uses :func:`os.scandir`
22
instead of :func:`os.listdir` to build directory listings, avoiding an
3-
:func:`os.stat` call per entry. This can improve
4-
:meth:`~http.server.SimpleHTTPRequestHandler.list_directory` performance where
5-
``stat`` calls are slow.
3+
:func:`os.stat` call per entry. This can improve directory listing performance
4+
where ``stat`` calls are slow.

0 commit comments

Comments
 (0)