diff options
Diffstat (limited to 'setuptools/py34compat.py')
-rw-r--r-- | setuptools/py34compat.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/py34compat.py b/setuptools/py34compat.py new file mode 100644 index 00000000..bc7eefa9 --- /dev/null +++ b/setuptools/py34compat.py @@ -0,0 +1,8 @@ +import importlib.util + + +try: + module_from_spec = importlib.util.module_from_spec +except AttributeError: + def module_from_spec(spec): + return spec.loader.load_module(spec.name) |