]> granicus.if.org Git - python/commit
Do some cleanup in importlib:
authorBrett Cannon <bcannon@gmail.com>
Sat, 21 Feb 2009 03:15:37 +0000 (03:15 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 21 Feb 2009 03:15:37 +0000 (03:15 +0000)
commit2dee597e0593a8f7b477f58afe5e46f94b994541
treeb3ddcc23c894a377ff78502209998aeae4f37dc7
parenta2fcb1d964af0a0aa5cecb7e37f8abe7d0a1f867
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/_bootstrap.py
Lib/importlib/test/extension/test_case_sensitivity.py
Lib/importlib/test/extension/test_finder.py
Lib/importlib/test/extension/test_path_hook.py
Lib/importlib/test/import_/test_path.py
Lib/importlib/test/source/test_case_sensitivity.py
Lib/importlib/test/source/test_finder.py
Lib/importlib/test/source/test_path_hook.py