diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2013-11-24 16:43:24 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2013-11-24 16:45:01 +0100 |
| commit | e681b2861d969eb5c5cd27ec8a9a14ebc8860bd1 (patch) | |
| tree | 89454bc4ea0f29ba3388854da5704ff8fb64fb30 /django/utils/autoreload.py | |
| parent | d47f794f8fa05591632b8cad4b134858e7ae140d (diff) | |
Fixed #21500 -- Removed imports of deprecated utils.importlib
Diffstat (limited to 'django/utils/autoreload.py')
| -rw-r--r-- | django/utils/autoreload.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 1b15c32874..4b0a97f12b 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -28,6 +28,8 @@ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +from __future__ import absolute_import # Avoid importing `importlib` from this package. + import os import signal import sys @@ -38,7 +40,7 @@ import traceback from django.conf import settings from django.core.signals import request_finished from django.utils._os import upath -from django.utils.importlib import import_module +from importlib import import_module from django.utils import six try: from django.utils.six.moves import _thread as thread |
