diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-24 16:09:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 16:09:47 (GMT) |
commit | 8763d43a9558b345af6a3a298afa18e7d3b42fd0 (patch) | |
tree | 260bf9be22b743195365c927df1e7ad709371568 /Lib/glob.py | |
parent | 366dac99c0c0c416a37874140696f59178db4e43 (diff) | |
download | cpython-8763d43a9558b345af6a3a298afa18e7d3b42fd0.zip cpython-8763d43a9558b345af6a3a298afa18e7d3b42fd0.tar.gz cpython-8763d43a9558b345af6a3a298afa18e7d3b42fd0.tar.bz2 |
bpo-37363: Add audit events for a range of modules (GH-14301)
(cherry picked from commit 60419a7e96577cf783b3b45bf3984f9fb0d7ddff)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Lib/glob.py')
-rw-r--r-- | Lib/glob.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index 002cd92..0b3fcc6 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -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 |