53e6db90 DC |
1 | import importlib |
2 | |
3 | try: |
4 | import importlib.util |
5 | except ImportError: |
6 | pass |
7 | |
8 | |
9 | try: |
10 | module_from_spec = importlib.util.module_from_spec |
11 | except AttributeError: |
12 | def module_from_spec(spec): |
13 | return spec.loader.load_module(spec.name) |