Skip to content

Commit

Permalink
Document glob() argument change.
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed May 6, 2024
1 parent a861589 commit d23584d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Unreleased
to ``PurePathBase.parser``.
- Add ``PurePathBase.full_match()``.
- Revert ``match()`` back to 3.12 behaviour (no recursive wildcards).
- Replace ``PathBase.glob(follow_symlinks=...)`` with ``recurse_symlinks=...``.
- Disallow passing ``bytes`` to initialisers.
- Improve walking and globbing performance.
- Expand test coverage.
Expand Down
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ Iterating over directories
The default implementation of this method immediately raises
:exc:`UnsupportedOperation`.

.. method:: PathBase.glob(pattern, *, case_sensitive=None, follow_symlinks=None)
.. method:: PathBase.rglob(pattern, *, case_sensitive=None, follow_symlinks=None)
.. method:: PathBase.glob(pattern, *, case_sensitive=None, recurse_symlinks=True)
.. method:: PathBase.rglob(pattern, *, case_sensitive=None, recurse_symlinks=True)
.. method:: PathBase.walk(top_down=True, on_error=None, follow_symlinks=False)

The default implementations of these methods call :meth:`iterdir` and
Expand Down

0 comments on commit d23584d

Please sign in to comment.