diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-16 20:13:05 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-16 20:13:05 -0400 |
| commit | 43bbaa5827d38eede4ca8c837c9fc4994f9ab665 (patch) | |
| tree | 88fcf4ac87766ae3cfae5a339dd11db0c37e95ce | |
| parent | e1824c093bf89e8875ddd329f316b9ed3e7dd533 (diff) | |
| download | python-setuptools-git-43bbaa5827d38eede4ca8c837c9fc4994f9ab665.tar.gz | |
Fix imports
| -rw-r--r-- | setuptools/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/config.py b/setuptools/config.py index cd1b115e..b39ac718 100644 --- a/setuptools/config.py +++ b/setuptools/config.py @@ -6,10 +6,10 @@ import sys import warnings import functools +import importlib from collections import defaultdict from functools import partial from functools import wraps -from importlib import import_module import contextlib from distutils.errors import DistutilsOptionError, DistutilsFileError @@ -391,7 +391,7 @@ class ConfigHandler: return getattr(StaticModule(module_name), attr_name) except Exception: # fallback to simple import - module = import_module(module_name) + module = importlib.import_module(module_name) return getattr(module, attr_name) |
