mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
[3.14] gh-143513: Clarify changed argument name of ResourceReader.is_resource (GH-143523) (GH-143562)
gh-143513: Clarify changed argument name of `ResourceReader.is_resource` (GH-143523)
(cherry picked from commit 5462002bbe)
Co-authored-by: Alex Willmer <alex@moreati.org.uk>
This commit is contained in:
parent
fd430f89f9
commit
6c6eb7abe5
1 changed files with 6 additions and 3 deletions
|
|
@ -63,11 +63,14 @@
|
|||
If the resource does not concretely exist on the file system,
|
||||
raise :exc:`FileNotFoundError`.
|
||||
|
||||
.. method:: is_resource(name)
|
||||
.. method:: is_resource(path)
|
||||
:abstractmethod:
|
||||
|
||||
Returns ``True`` if the named *name* is considered a resource.
|
||||
:exc:`FileNotFoundError` is raised if *name* does not exist.
|
||||
Returns ``True`` if the named *path* is considered a resource.
|
||||
:exc:`FileNotFoundError` is raised if *path* does not exist.
|
||||
|
||||
.. versionchanged:: 3.10
|
||||
The argument *name* was renamed to *path*.
|
||||
|
||||
.. method:: contents()
|
||||
:abstractmethod:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue