Skip to content

Commit 5207807

Browse files
Lisa CarrierLisa Carrier
authored andcommitted
Moves audit and uses path argument.
1 parent ac56ef0 commit 5207807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/importlib/_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,8 +1306,8 @@ def _sanity_check(name, package, level):
13061306
_ERR_MSG_PREFIX = 'No module named '
13071307

13081308
def _find_and_load_unlocked(name, import_):
1309-
sys.audit("import", name, None, sys.path, sys.meta_path, sys.path_hooks)
13101309
path = None
1310+
sys.audit("import", name, path, sys.path, sys.meta_path, sys.path_hooks)
13111311
parent = name.rpartition('.')[0]
13121312
parent_spec = None
13131313
if parent:

0 commit comments

Comments
 (0)