diff --git a/django/utils/formats.py b/django/utils/formats.py index 6b89b40ecd4..11e2bef8aec 100644 --- a/django/utils/formats.py +++ b/django/utils/formats.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import # Avoid importing `importlib` from this package. + import decimal import datetime from importlib import import_module diff --git a/django/utils/module_loading.py b/django/utils/module_loading.py index 359982e6ba4..9c8ea98d509 100644 --- a/django/utils/module_loading.py +++ b/django/utils/module_loading.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import # Avoid importing `importlib` from this package. + import imp from importlib import import_module import os