From ac0e41e2c4d5c3712327fb4fe30420ec7a17c8d2 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Mon, 19 Aug 2013 19:42:53 -0400 Subject: [PATCH] Avoid importing the deprecated `django.utils.importlib` package. --- django/utils/formats.py | 2 ++ django/utils/module_loading.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/django/utils/formats.py b/django/utils/formats.py index 6b89b40ecd..11e2bef8ae 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 359982e6ba..9c8ea98d50 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