◐ Shell
clean mode source ↗

Message 183181 - Python tracker

The remaining uses of imp.load_module() after issue #17314 (which will probably all disappear as uses of imp.find_module() is removed):

Lib/idlelib/EditorWindow.py
48:        module = imp.load_module(tgt, file, filename, descr)

Lib/pkgutil.py
291:            mod = imp.load_module(fullname, self.file, self.filename, self.etc)

Lib/pydoc.py
47:#   - imp.load_module() cannot be prevented from clobbering existing
277:            module = imp.load_module(name, file, path, (ext, 'r', kind))

Lib/test/test_imp.py
155:                mod = imp.load_module(temp_mod_name, file, filename, info)
203:            new_os = imp.load_module("os", *x)
217:        mod = imp.load_module(example, *x)

Lib/test/test_importhooks.py
132:        mod = imp.load_module(fullname, self.file, self.filename, self.stuff)