From 2fef4d2e6bbb88d1a13a9fd7bc54cb842894974c Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sun, 15 Apr 2012 19:06:23 -0400 Subject: [PATCH] Consider load_dynamic() something to keep in _imp. --- Lib/imp.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Lib/imp.py b/Lib/imp.py index d7ba3443b22..655bf56f2d2 100644 --- a/Lib/imp.py +++ b/Lib/imp.py @@ -7,13 +7,14 @@ functionality over this module. """ # (Probably) need to stay in _imp from _imp import (lock_held, acquire_lock, release_lock, reload, - get_frozen_object, is_frozen_package, init_builtin, - init_frozen, is_builtin, is_frozen, _fix_co_filename) + load_dynamic, get_frozen_object, is_frozen_package, + init_builtin, init_frozen, is_builtin, is_frozen, + _fix_co_filename) # Can (probably) move to importlib from _imp import (get_magic, get_tag, get_suffixes, cache_from_source, source_from_cache) # Should be re-implemented here (and mostly deprecated) -from _imp import (find_module, load_module, load_compiled, load_dynamic, +from _imp import (find_module, load_module, load_compiled, load_package, load_source, NullImporter, SEARCH_ERROR, PY_SOURCE, PY_COMPILED, C_EXTENSION, PY_RESOURCE, PKG_DIRECTORY, C_BUILTIN, PY_FROZEN,