Skip to content

Commit

Permalink
Fix links to importlib.abc.Traversable
Browse files Browse the repository at this point in the history
Closes python#93610

This also improves the error message when someone uses the older `make serve`
command of `Docs/Makefile`.
  • Loading branch information
warsaw committed Jun 10, 2022
1 parent cf730b5 commit 516f14d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ check:
$(SPHINXLINT) --enable default-role ../Misc/NEWS.d/next/

serve:
@echo "The serve target was removed, use htmlview instead (see bpo-36329)"
@echo "The serve target was removed, use `make htmlview` instead (see bpo-36329)"

# Targets for daily automated doc build
# By default, Sphinx only rebuilds pages where the page content has changed.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/importlib.resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The following functions are available.

.. function:: files(package)

Returns an :class:`importlib.resources.abc.Traversable` object
Returns an :class:`importlib.abc.Traversable` object
representing the resource container for the package (think directory)
and its resources (think files). A Traversable may contain other
containers (think subdirectories).
Expand All @@ -73,7 +73,7 @@ The following functions are available.

.. function:: as_file(traversable)

Given a :class:`importlib.resources.abc.Traversable` object representing
Given a :class:`importlib.abc.Traversable` object representing
a file, typically from :func:`importlib.resources.files`, return
a context manager for use in a :keyword:`with` statement.
The context manager provides a :class:`pathlib.Path` object.
Expand Down

0 comments on commit 516f14d

Please sign in to comment.