From 2dee597e0593a8f7b477f58afe5e46f94b994541 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 21 Feb 2009 03:15:37 +0000 Subject: Do some cleanup in importlib: + Ditch using arguments to super(). + Ditch subclassing from object directly. + Move directory check out of chaining path hook to file path hook/finder. + Rename some classes to better reflect they are finders, not importers. --- Lib/importlib/test/extension/test_path_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/importlib/test/extension/test_path_hook.py') diff --git a/Lib/importlib/test/extension/test_path_hook.py b/Lib/importlib/test/extension/test_path_hook.py index 674fd903170..76f4995ad8f 100644 --- a/Lib/importlib/test/extension/test_path_hook.py +++ b/Lib/importlib/test/extension/test_path_hook.py @@ -14,7 +14,7 @@ class PathHookTests(unittest.TestCase): # XXX Should it only work for directories containing an extension module? def hook(self, entry): - return importlib.ExtensionFileImporter(entry) + return importlib.ExtensionFileFinder(entry) def test_success(self): # Path hook should handle a directory where a known extension module -- cgit v1.2.3