bpo-39567: Document audit for os.walk, os.fwalk, Path.glob and Path.rglob. (GH-18499)
This commit is contained in:
parent
eb4e2ae2b8
commit
db283b32e7
|
@ -3053,6 +3053,8 @@ features:
|
||||||
for name in dirs:
|
for name in dirs:
|
||||||
os.rmdir(os.path.join(root, name))
|
os.rmdir(os.path.join(root, name))
|
||||||
|
|
||||||
|
.. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
|
||||||
|
|
||||||
.. versionchanged:: 3.5
|
.. versionchanged:: 3.5
|
||||||
This function now calls :func:`os.scandir` instead of :func:`os.listdir`,
|
This function now calls :func:`os.scandir` instead of :func:`os.listdir`,
|
||||||
making it faster by reducing the number of calls to :func:`os.stat`.
|
making it faster by reducing the number of calls to :func:`os.stat`.
|
||||||
|
@ -3112,6 +3114,8 @@ features:
|
||||||
for name in dirs:
|
for name in dirs:
|
||||||
os.rmdir(name, dir_fd=rootfd)
|
os.rmdir(name, dir_fd=rootfd)
|
||||||
|
|
||||||
|
.. audit-event:: os.fwalk top,topdown,onerror,follow_symlinks,dir_fd os.fwalk
|
||||||
|
|
||||||
.. availability:: Unix.
|
.. availability:: Unix.
|
||||||
|
|
||||||
.. versionadded:: 3.3
|
.. versionadded:: 3.3
|
||||||
|
|
|
@ -763,6 +763,8 @@ call fails (for example because the path doesn't exist).
|
||||||
Using the "``**``" pattern in large directory trees may consume
|
Using the "``**``" pattern in large directory trees may consume
|
||||||
an inordinate amount of time.
|
an inordinate amount of time.
|
||||||
|
|
||||||
|
.. audit-event:: pathlib.Path.glob self,pattern pathlib.Path.glob
|
||||||
|
|
||||||
|
|
||||||
.. method:: Path.group()
|
.. method:: Path.group()
|
||||||
|
|
||||||
|
@ -1025,6 +1027,8 @@ call fails (for example because the path doesn't exist).
|
||||||
PosixPath('setup.py'),
|
PosixPath('setup.py'),
|
||||||
PosixPath('test_pathlib.py')]
|
PosixPath('test_pathlib.py')]
|
||||||
|
|
||||||
|
.. audit-event:: pathlib.Path.rglob self,pattern pathlib.Path.rglob
|
||||||
|
|
||||||
|
|
||||||
.. method:: Path.rmdir()
|
.. method:: Path.rmdir()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue