Commit afa410dc authored by Jason R. Coombs's avatar Jason R. Coombs

Refactor to support multiple loader names. Ref #1337.

parent af4e065b
......@@ -1518,12 +1518,10 @@ class DefaultProvider(EggProvider):
@classmethod
def _register(cls):
loader_cls = getattr(
importlib_machinery,
'SourceFileLoader',
type(None),
)
register_loader_type(loader_cls, cls)
loader_names = 'SourceFileLoader',
for name in loader_names:
loader_cls = getattr(importlib_machinery, name, type(None))
register_loader_type(loader_cls, cls)
DefaultProvider._register()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment