mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37363: Add audit events for a range of modules (GH-14301)
This commit is contained in:
parent
9bbf4d7083
commit
60419a7e96
37 changed files with 165 additions and 18 deletions
|
@ -3,6 +3,7 @@
|
|||
import os
|
||||
import re
|
||||
import fnmatch
|
||||
import sys
|
||||
|
||||
__all__ = ["glob", "iglob", "escape"]
|
||||
|
||||
|
@ -37,6 +38,7 @@ def iglob(pathname, *, recursive=False):
|
|||
return it
|
||||
|
||||
def _iglob(pathname, recursive, dironly):
|
||||
sys.audit("glob.glob", pathname, recursive)
|
||||
dirname, basename = os.path.split(pathname)
|
||||
if not has_magic(pathname):
|
||||
assert not dironly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue