From: Jeremy Hylton Date: Thu, 21 Sep 2000 14:46:56 +0000 (+0000) Subject: fix bogus references to imp; makes test_minidom succeed X-Git-Tag: v2.0b2~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d34580cb878efadc2e6a33df3de7b6d9828e67b0;p=thirdparty%2FPython%2Fcpython.git fix bogus references to imp; makes test_minidom succeed --- diff --git a/Lib/xml/sax/__init__.py b/Lib/xml/sax/__init__.py index c6034367a172..2979f4a4a090 100644 --- a/Lib/xml/sax/__init__.py +++ b/Lib/xml/sax/__init__.py @@ -96,7 +96,7 @@ else: else: info = (mod,) + _imp.find_module(mod, [path]) - lastmod = apply(imp.load_module, info) + lastmod = _imp.load_module(*info) try: path = lastmod.__path__[0] @@ -107,7 +107,7 @@ else: def _create_parser(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() del sys