[issue14797] Deprecate imp.find_module()/load_module()
Brett Cannon
report at bugs.python.org
Wed Feb 27 21:04:26 CET 2013
Brett Cannon added the comment:
Assuming issue #17314 gets fixed, that leaves the following uses of imp.find_module():
Lib/idlelib/EditorWindow.py
39: """Version of imp.find_module() that handles hierarchical module names"""
45: (file, filename, descr) = imp.find_module(tgt, path)
Lib/modulefinder.py
482: return imp.find_module(name, path)
Lib/pkgutil.py
229: file, filename, etc = imp.find_module(subname, path)
Lib/test/test_imp.py
59: with imp.find_module('module_' + mod, self.test_path)[0] as fd:
64: imp.find_module('badsyntax_pep3120', path)
68: fp, filename, info = imp.find_module('module_' + mod,
77: fp, filename, info = imp.find_module("tokenize")
91: file, filename, info = imp.find_module(temp_mod_name)
147: file, filename, info = imp.find_module(temp_mod_name)
187: imp.find_module, "badsyntax_pep3120", [path])
201: x = imp.find_module("os")
213: x = imp.find_module(example)
223: fileobj, pathname, description = imp.find_module(m)
Lib/test/test_import.py
128: imp.find_module, TESTFN, ["."])
Lib/test/test_importhooks.py
118: file, filename, stuff = imp.find_module(subname, path)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14797>
_______________________________________
More information about the Python-bugs-list
mailing list