Skip to content

Commit 5912abc

Browse files
committed
Move OSError note above seealso in Path.rglob() per review
1 parent 9f88a5e commit 5912abc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/pathlib.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,14 +1382,14 @@ Reading directories
13821382
The paths are returned in no particular order.
13831383
If you need a specific order, sort the results.
13841384

1385-
.. seealso::
1386-
:ref:`pathlib-pattern-language` and :meth:`Path.glob` documentation.
1387-
13881385
.. note::
13891386
Any :exc:`OSError` exceptions raised from scanning the filesystem are
13901387
suppressed. This includes :exc:`PermissionError` when accessing
13911388
directories without read permission.
13921389

1390+
.. seealso::
1391+
:ref:`pathlib-pattern-language` and :meth:`Path.glob` documentation.
1392+
13931393
.. audit-event:: pathlib.Path.rglob self,pattern pathlib.Path.rglob
13941394

13951395
.. versionchanged:: 3.12

0 commit comments

Comments
 (0)