diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-01-22 22:43:07 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-01-22 22:43:07 (GMT) |
commit | 5abdc93eb85bc434c3b81b6c7fd1f05e7c9b5fb8 (patch) | |
tree | 17dbd10a78d4efc28ab798d9cdb3146419223c28 /Lib/importlib/test/frozen/test_finder.py | |
parent | 7b3c89d88cac53325b30f583643d288426d90789 (diff) | |
download | cpython-5abdc93eb85bc434c3b81b6c7fd1f05e7c9b5fb8.zip cpython-5abdc93eb85bc434c3b81b6c7fd1f05e7c9b5fb8.tar.gz cpython-5abdc93eb85bc434c3b81b6c7fd1f05e7c9b5fb8.tar.bz2 |
Add importlib.machinery with its first tenants, BuitinImporter and
FrozenImporter. Docs forthcoming.
I plan on all finders and loaders (and most likely hooks) to live
in imoprtlib.machinery. Utility stuff will end up in importlib.util.
Higher-level API stuff will stay on imoprtlib directly (e.g. import_module).
Diffstat (limited to 'Lib/importlib/test/frozen/test_finder.py')
-rw-r--r-- | Lib/importlib/test/frozen/test_finder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/frozen/test_finder.py b/Lib/importlib/test/frozen/test_finder.py index 2541019..8d8a8af 100644 --- a/Lib/importlib/test/frozen/test_finder.py +++ b/Lib/importlib/test/frozen/test_finder.py @@ -1,4 +1,4 @@ -import importlib +from importlib import machinery from ..builtin import test_finder from .. import support @@ -10,7 +10,7 @@ class FinderTests(test_finder.FinderTests): """Test finding frozen modules.""" def find(self, name, path=None): - finder = importlib.FrozenImporter() + finder = machinery.FrozenImporter return finder.find_module(name, path) |