mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
1
django/core/cache/backends/base.py
vendored
1
django/core/cache/backends/base.py
vendored
@@ -2,7 +2,6 @@
|
||||
|
||||
import warnings
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.exceptions import ImproperlyConfigured, DjangoRuntimeWarning
|
||||
from django.utils.encoding import smart_str
|
||||
from django.utils.importlib import import_module
|
||||
|
||||
11
django/core/cache/backends/db.py
vendored
11
django/core/cache/backends/db.py
vendored
@@ -1,14 +1,17 @@
|
||||
"Database cache backend."
|
||||
|
||||
from django.core.cache.backends.base import BaseCache
|
||||
from django.db import connections, router, transaction, DatabaseError
|
||||
import base64, time
|
||||
import base64
|
||||
import time
|
||||
from datetime import datetime
|
||||
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except ImportError:
|
||||
import pickle
|
||||
|
||||
from django.core.cache.backends.base import BaseCache
|
||||
from django.db import connections, router, transaction, DatabaseError
|
||||
|
||||
|
||||
class Options(object):
|
||||
"""A class that will quack like a Django model _meta class.
|
||||
|
||||
|
||||
1
django/core/cache/backends/memcached.py
vendored
1
django/core/cache/backends/memcached.py
vendored
@@ -4,7 +4,6 @@ import time
|
||||
from threading import local
|
||||
|
||||
from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError
|
||||
from django.utils import importlib
|
||||
|
||||
class BaseMemcachedCache(BaseCache):
|
||||
def __init__(self, server, params, library, value_not_found_exception):
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
from pprint import pformat
|
||||
import sys
|
||||
from warnings import warn
|
||||
|
||||
@@ -8,7 +7,7 @@ from django.core import signals
|
||||
from django.core.handlers.base import BaseHandler
|
||||
from django.core.urlresolvers import set_script_prefix
|
||||
from django.utils import datastructures
|
||||
from django.utils.encoding import force_unicode, smart_str, iri_to_uri
|
||||
from django.utils.encoding import force_unicode, iri_to_uri
|
||||
from django.utils.log import getLogger
|
||||
|
||||
logger = getLogger('django.request')
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import hotshot, time, os
|
||||
import hotshot
|
||||
import os
|
||||
import time
|
||||
|
||||
from django.core.handlers.modpython import ModPythonHandler
|
||||
|
||||
PROFILE_DATA_DIR = "/var/log/cmsprofile"
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
from pprint import pformat
|
||||
import sys
|
||||
from threading import Lock
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
import socket
|
||||
|
||||
from django import http
|
||||
from django.core import signals
|
||||
|
||||
@@ -11,11 +11,11 @@ from django.utils.importlib import import_module
|
||||
# django/core/mail.py before the introduction of email
|
||||
# backends and the subsequent reorganization (See #10355)
|
||||
from django.core.mail.utils import CachedDnsName, DNS_NAME
|
||||
from django.core.mail.message import \
|
||||
EmailMessage, EmailMultiAlternatives, \
|
||||
SafeMIMEText, SafeMIMEMultipart, \
|
||||
DEFAULT_ATTACHMENT_MIME_TYPE, make_msgid, \
|
||||
BadHeaderError, forbid_multi_line_headers
|
||||
from django.core.mail.message import (
|
||||
EmailMessage, EmailMultiAlternatives,
|
||||
SafeMIMEText, SafeMIMEMultipart,
|
||||
DEFAULT_ATTACHMENT_MIME_TYPE, make_msgid,
|
||||
BadHeaderError, forbid_multi_line_headers)
|
||||
from django.core.mail.backends.smtp import EmailBackend as _SMTPConnection
|
||||
|
||||
def get_connection(backend=None, fail_silently=False, **kwds):
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from optparse import make_option
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.management.base import AppCommand, CommandError
|
||||
from django.core.management.color import no_style
|
||||
from django.core.management.sql import sql_reset
|
||||
|
||||
@@ -5,8 +5,7 @@ Module for abstract serializer/unserializer base classes.
|
||||
from StringIO import StringIO
|
||||
|
||||
from django.db import models
|
||||
from django.utils.encoding import smart_str, smart_unicode
|
||||
from django.utils import datetime_safe
|
||||
from django.utils.encoding import smart_unicode
|
||||
|
||||
class SerializerDoesNotExist(KeyError):
|
||||
"""The requested serializer was not found."""
|
||||
|
||||
@@ -18,7 +18,6 @@ from wsgiref import simple_server
|
||||
from wsgiref.util import FileWrapper # for backwards compatibility
|
||||
|
||||
import django
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.core.management.color import color_style
|
||||
from django.utils._os import safe_join
|
||||
from django.views import static
|
||||
|
||||
@@ -12,8 +12,9 @@ Run with the extra option "help" for a list of additional options you can
|
||||
pass to this server.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from django.utils import importlib
|
||||
import sys, os
|
||||
|
||||
__version__ = "0.1"
|
||||
__all__ = ["runfastcgi"]
|
||||
|
||||
Reference in New Issue
Block a user