mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Check if we've already loaded a dynamic module under a different name.
This commit is contained in:
parent
7d0bc8343f
commit
fbe6d33ffd
3 changed files with 38 additions and 5 deletions
|
|
@ -487,7 +487,7 @@ load_module(name)
|
|||
break;
|
||||
|
||||
case C_EXTENSION:
|
||||
m = load_dynamic_module(name, buf);
|
||||
m = load_dynamic_module(name, buf, fp);
|
||||
break;
|
||||
|
||||
#ifdef macintosh
|
||||
|
|
@ -868,7 +868,7 @@ imp_load_dynamic(self, args)
|
|||
object *dummy;
|
||||
if (!newgetargs(args, "ss|O", &name, &pathname, &dummy))
|
||||
return NULL;
|
||||
return load_dynamic_module(name, pathname);
|
||||
return load_dynamic_module(name, pathname, NULL);
|
||||
}
|
||||
|
||||
static object *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue