Mercurial > cpython-lru_cache-weakref
diff Lib/importlib/_bootstrap.py @ 76548:a2cf07135e4f
Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader.
This time also recreating the Python/importlib.h file to make
make happy. See the ticket for details.
| author | Marc-Andre Lemburg <mal@egenix.com> |
|---|---|
| date | Wed, 25 Apr 2012 02:31:37 +0200 |
| parents | e30196bfc11d |
| children | acfdf46b8de1 |
line wrap: on
line diff
--- a/Lib/importlib/_bootstrap.py Wed Apr 25 02:11:07 2012 +0200 +++ b/Lib/importlib/_bootstrap.py Wed Apr 25 02:31:37 2012 +0200 @@ -671,7 +671,7 @@ pass -class _SourcelessFileLoader(FileLoader, _LoaderBasics): +class SourcelessFileLoader(FileLoader, _LoaderBasics): """Loader which handles sourceless file imports.""" @@ -1198,7 +1198,7 @@ supported_loaders = [(ExtensionFileLoader, _suffix_list(3), False), (SourceFileLoader, _suffix_list(1), True), - (_SourcelessFileLoader, _suffix_list(2), True)] + (SourcelessFileLoader, _suffix_list(2), True)] setattr(self_module, '_DEFAULT_PATH_HOOK', FileFinder.path_hook(*supported_loaders))
