Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid importing the deprecated `django.utils.importlib` package.

  • Loading branch information...
commit eadecf0cdbc30d2351b91ae77d7a441f592bc5d0 1 parent e9b703f
Simon Charette charettes authored andrewgodwin committed
Showing with 4 additions and 0 deletions.
  1. +2 −0  django/utils/formats.py
  2. +2 −0  django/utils/module_loading.py
2  django/utils/formats.py
View
@@ -1,3 +1,5 @@
+from __future__ import absolute_import # Avoid importing `importlib` from this package.
+
import decimal
import datetime
from importlib import import_module
2  django/utils/module_loading.py
View
@@ -1,3 +1,5 @@
+from __future__ import absolute_import # Avoid importing `importlib` from this package.
+
import imp
from importlib import import_module
import os
Please sign in to comment.
Something went wrong with that request. Please try again.