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

Skip to content

Commit d34580c

Browse files
committed
fix bogus references to imp; makes test_minidom succeed
1 parent cf06571 commit d34580c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/xml/sax/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _rec_find_module(module):
9696
else:
9797
info = (mod,) + _imp.find_module(mod, [path])
9898

99-
lastmod = apply(imp.load_module, info)
99+
lastmod = _imp.load_module(*info)
100100

101101
try:
102102
path = lastmod.__path__[0]
@@ -107,7 +107,7 @@ def _rec_find_module(module):
107107

108108
def _create_parser(parser_name):
109109
info = _rec_find_module(parser_name)
110-
drv_module = apply(imp.load_module, info)
110+
drv_module = _imp.load_module(*info)
111111
return drv_module.create_parser()
112112

113113
del sys

0 commit comments

Comments
 (0)