From 60419a7e96577cf783b3b45bf3984f9fb0d7ddff Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 24 Jun 2019 08:42:54 -0700 Subject: bpo-37363: Add audit events for a range of modules (GH-14301) --- Lib/glob.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/glob.py') diff --git a/Lib/glob.py b/Lib/glob.py index 002cd92019..0b3fcc6bbb 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 -- cgit v1.2.1