1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed old import aliases.

This commit is contained in:
Tim Graham 2015-02-05 18:30:11 -05:00
parent 0f54cf28c0
commit bbe28496d3
5 changed files with 2 additions and 12 deletions

View File

@ -12,7 +12,6 @@ from __future__ import unicode_literals
import socket
import sys
from wsgiref import simple_server
from wsgiref.util import FileWrapper # NOQA: for backwards compatibility
from django.core.exceptions import ImproperlyConfigured
from django.core.handlers.wsgi import ISO_8859_1, UTF_8

View File

@ -33,10 +33,6 @@ from django.utils import six
from django.utils.six.moves.urllib.parse import urlsplit, urlunsplit
from django.utils.translation import ugettext_lazy as _, ungettext_lazy
# Provide this import for backwards compatibility.
from django.core.validators import EMPTY_VALUES # NOQA
__all__ = (
'Field', 'CharField', 'IntegerField',
'DateField', 'TimeField', 'DateTimeField', 'DurationField',

View File

@ -14,7 +14,6 @@ import sys
import threading
import unittest
import warnings
from unittest import skipIf # NOQA: Imported here for backward compatibility
from unittest.util import safe_repr
from django.apps import apps

View File

@ -12,10 +12,6 @@ from django.utils.encoding import force_text
from django.utils.module_loading import import_string
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
# Imports kept for backwards-compatibility in Django 1.7.
from logging import NullHandler # NOQA
from logging.config import dictConfig # NOQA
getLogger = logging.getLogger
# Default logging for Django. This sends an email to the site admins on every
@ -80,7 +76,7 @@ def configure_logging(logging_config, logging_settings):
# First find the logging configuration function ...
logging_config_func = import_string(logging_config)
dictConfig(DEFAULT_LOGGING)
logging.config.dictConfig(DEFAULT_LOGGING)
# ... then invoke it with the logging settings
if logging_settings:

View File

@ -3,6 +3,7 @@ from __future__ import unicode_literals
import tempfile
import os
from wsgiref.util import FileWrapper
from django import forms
from django.contrib import admin
@ -10,7 +11,6 @@ from django.contrib.admin.views.main import ChangeList
from django.core.exceptions import ValidationError
from django.core.files.storage import FileSystemStorage
from django.core.mail import EmailMessage
from django.core.servers.basehttp import FileWrapper
from django.conf.urls import url
from django.forms.models import BaseModelFormSet
from django.http import HttpResponse, StreamingHttpResponse