mirror of https://github.com/python/cpython.git
fix bogus references to imp; makes test_minidom succeed
This commit is contained in:
parent
cf06571a8b
commit
d34580cb87
|
@ -96,7 +96,7 @@ def _rec_find_module(module):
|
||||||
else:
|
else:
|
||||||
info = (mod,) + _imp.find_module(mod, [path])
|
info = (mod,) + _imp.find_module(mod, [path])
|
||||||
|
|
||||||
lastmod = apply(imp.load_module, info)
|
lastmod = _imp.load_module(*info)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
path = lastmod.__path__[0]
|
path = lastmod.__path__[0]
|
||||||
|
@ -107,7 +107,7 @@ def _rec_find_module(module):
|
||||||
|
|
||||||
def _create_parser(parser_name):
|
def _create_parser(parser_name):
|
||||||
info = _rec_find_module(parser_name)
|
info = _rec_find_module(parser_name)
|
||||||
drv_module = apply(imp.load_module, info)
|
drv_module = _imp.load_module(*info)
|
||||||
return drv_module.create_parser()
|
return drv_module.create_parser()
|
||||||
|
|
||||||
del sys
|
del sys
|
||||||
|
|
Loading…
Reference in New Issue