diff options
author | Marc-Andre Lemburg <mal@egenix.com> | 2012-04-25 00:31:37 (GMT) |
---|---|---|
committer | Marc-Andre Lemburg <mal@egenix.com> | 2012-04-25 00:31:37 (GMT) |
commit | 4fe29c9657d64e8e3301122c104b7ca8fd23c348 (patch) | |
tree | f04a51eef51805eacccaa931e0d9ba4bec9ecb51 /Lib/importlib/_bootstrap.py | |
parent | ac8805a01a0beeb4c5b2f6d9d988629446517632 (diff) | |
download | cpython-4fe29c9657d64e8e3301122c104b7ca8fd23c348.zip cpython-4fe29c9657d64e8e3301122c104b7ca8fd23c348.tar.gz cpython-4fe29c9657d64e8e3301122c104b7ca8fd23c348.tar.bz2 |
Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader.
This time also recreating the Python/importlib.h file to make
make happy. See the ticket for details.
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index d9df2b7..817fe39 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -671,7 +671,7 @@ class SourceFileLoader(FileLoader, SourceLoader): pass -class _SourcelessFileLoader(FileLoader, _LoaderBasics): +class SourcelessFileLoader(FileLoader, _LoaderBasics): """Loader which handles sourceless file imports.""" @@ -1198,7 +1198,7 @@ def _setup(sys_module, _imp_module): 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)) |