Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d65911b

Browse files
committed
Oops -- overuse of dabbrev-expand introduced a strange bug, where
instead of 'locals' I was passing 'lock_import' to import_module_ex().
1 parent 986c100 commit d65911b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ PyImport_ImportModuleEx(name, globals, locals, fromlist)
13731373
{
13741374
PyObject *result;
13751375
lock_import();
1376-
result = import_module_ex(name, globals, lock_import, fromlist);
1376+
result = import_module_ex(name, globals, locals, fromlist);
13771377
unlock_import();
13781378
return result;
13791379
}

0 commit comments

Comments
 (0)