summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/frozen/test_loader.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-01-22 22:43:07 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-01-22 22:43:07 (GMT)
commit5abdc93eb85bc434c3b81b6c7fd1f05e7c9b5fb8 (patch)
tree17dbd10a78d4efc28ab798d9cdb3146419223c28 /Lib/importlib/test/frozen/test_loader.py
parent7b3c89d88cac53325b30f583643d288426d90789 (diff)
downloadcpython-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_loader.py')
-rw-r--r--Lib/importlib/test/frozen/test_loader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/frozen/test_loader.py b/Lib/importlib/test/frozen/test_loader.py
index b37ae7f..95854f2 100644
--- a/Lib/importlib/test/frozen/test_loader.py
+++ b/Lib/importlib/test/frozen/test_loader.py
@@ -1,4 +1,4 @@
-import importlib
+from importlib import machinery
from ..builtin import test_loader
@@ -6,7 +6,7 @@ class LoaderTests(test_loader.LoaderTests):
name = '__phello__'
load_module = staticmethod(lambda name:
- importlib.FrozenImporter().load_module(name))
+ machinery.FrozenImporter.load_module(name))
verification = {'__name__': '__phello__', '__file__': '<frozen>',
'__package__': None, '__path__': ['__phello__']}