1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Deprecated django.utils.importlib

This was a shim for pre-Python 2.7 support.
This commit is contained in:
Claude Paroz
2013-07-29 15:50:58 +02:00
parent ac09558760
commit fdd7a355bf
38 changed files with 64 additions and 49 deletions

View File

@@ -5,6 +5,7 @@ import os
import re
import mimetypes
from copy import copy
from importlib import import_module
from io import BytesIO
try:
from urllib.parse import unquote, urlparse, urlsplit
@@ -25,7 +26,6 @@ from django.test import signals
from django.utils.functional import curry
from django.utils.encoding import force_bytes, force_str
from django.utils.http import urlencode
from django.utils.importlib import import_module
from django.utils.itercompat import is_iterable
from django.utils import six
from django.test.utils import ContextList

View File

@@ -3,6 +3,7 @@ This module is pending deprecation as of Django 1.6 and will be removed in
version 1.8.
"""
from importlib import import_module
import json
import re
import unittest as real_unittest
@@ -15,7 +16,6 @@ from django.test.utils import compare_xml, strip_quotes
# django.utils.unittest is deprecated, but so is django.test.simple,
# and the latter will be removed before the former.
from django.utils import unittest
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
__all__ = ('DjangoTestSuiteRunner',)