Ticket #7847: unused.imports.r8002.diff
File unused.imports.r8002.diff, 18.9 KB (added by , 16 years ago) |
---|
-
django/django/db/models/sql/query.py
7 7 all about the internals of models in order to get the information it needs. 8 8 """ 9 9 10 import datetime11 10 from copy import deepcopy 12 11 13 12 from django.utils.tree import Node -
django/django/db/models/base.py
12 12 import django.db.models.manager # Ditto. 13 13 from django.core import validators 14 14 from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned, FieldError 15 from django.db.models.fields import AutoField, ImageField , FieldDoesNotExist15 from django.db.models.fields import AutoField, ImageField 16 16 from django.db.models.fields.related import OneToOneRel, ManyToOneRel, OneToOneField 17 17 from django.db.models.query import delete_objects, Q, CollectedObjects 18 18 from django.db.models.options import Options … … 20 20 from django.db.models import signals 21 21 from django.db.models.loading import register_models, get_model 22 22 from django.dispatch import dispatcher 23 from django.utils.datastructures import SortedDict24 23 from django.utils.functional import curry 25 24 from django.utils.encoding import smart_str, force_unicode, smart_unicode 26 25 from django.core.files.move import file_move_safe -
django/django/db/models/fields/related.py
3 3 from django.db.models.fields import AutoField, Field, IntegerField, PositiveIntegerField, PositiveSmallIntegerField, FieldDoesNotExist 4 4 from django.db.models.related import RelatedObject 5 5 from django.db.models.query_utils import QueryWrapper 6 from django.utils.text import capfirst7 6 from django.utils.translation import ugettext_lazy, string_concat, ungettext, ugettext as _ 8 7 from django.utils.functional import curry 9 from django.utils.encoding import smart_unicode10 8 from django.core import validators 11 9 from django import oldforms 12 10 from django import forms -
django/django/db/models/__init__.py
10 10 from django.db.models.fields.subclassing import SubfieldBase 11 11 from django.db.models.fields.related import ForeignKey, OneToOneField, ManyToManyField, ManyToOneRel, ManyToManyRel, OneToOneRel, TABULAR, STACKED 12 12 from django.db.models import signals 13 from django.utils.functional import curry14 from django.utils.text import capfirst15 13 16 14 # Admin stages. 17 15 ADD, CHANGE, BOTH = 1, 2, 3 -
django/django/db/backends/oracle/base.py
8 8 9 9 from django.db.backends import BaseDatabaseWrapper, BaseDatabaseFeatures, BaseDatabaseOperations, util 10 10 from django.db.backends.oracle import query 11 from django.utils.datastructures import SortedDict12 11 from django.utils.encoding import smart_str, force_unicode 13 12 14 13 # Oracle takes client-side character set encoding from the environment. -
django/django/forms/util.py
1 1 from django.utils.html import escape 2 2 from django.utils.encoding import smart_unicode, StrAndUnicode, force_unicode 3 from django.utils.functional import Promise4 3 from django.utils.safestring import mark_safe 5 4 6 5 def flatatt(attrs): -
django/django/forms/formsets.py
2 2 from django.utils.encoding import StrAndUnicode 3 3 from django.utils.safestring import mark_safe 4 4 from fields import IntegerField, BooleanField 5 from widgets import Media, HiddenInput , TextInput5 from widgets import Media, HiddenInput 6 6 from util import ErrorList, ValidationError 7 7 8 8 __all__ = ('BaseFormSet', 'all_valid') -
django/django/forms/models.py
8 8 from django.utils.translation import ugettext_lazy as _ 9 9 from django.utils.encoding import smart_unicode 10 10 from django.utils.datastructures import SortedDict 11 from django.core.exceptions import ImproperlyConfigured12 11 13 12 from util import ValidationError, ErrorList 14 13 from forms import BaseForm, get_declared_fields -
django/django/forms/fields.py
23 23 from sets import Set as set 24 24 25 25 from django.utils.translation import ugettext_lazy as _ 26 from django.utils.encoding import StrAndUnicode,smart_unicode, smart_str26 from django.utils.encoding import smart_unicode, smart_str 27 27 28 28 from util import ErrorList, ValidationError 29 29 from widgets import TextInput, PasswordInput, HiddenInput, MultipleHiddenInput, FileInput, CheckboxInput, Select, NullBooleanSelect, SelectMultiple, DateTimeInput -
django/django/core/files/uploadhandler.py
1 1 """ 2 2 Base file upload handler classes, and the built-in concrete subclasses 3 3 """ 4 import os5 import tempfile6 4 try: 7 5 from cStringIO import StringIO 8 6 except ImportError: -
django/django/core/management/commands/compilemessages.py
2 2 import sys 3 3 from optparse import make_option 4 4 from django.core.management.base import BaseCommand 5 from django.core.management.color import no_style6 5 7 6 try: 8 7 set -
django/django/core/management/commands/testserver.py
17 17 requires_model_validation = False 18 18 19 19 def handle(self, *fixture_labels, **options): 20 from django.conf import settings21 20 from django.core.management import call_command 22 21 from django.test.utils import create_test_db 23 22 -
django/django/core/management/commands/test.py
17 17 18 18 def handle(self, *test_labels, **options): 19 19 from django.conf import settings 20 from django.db.models import get_app, get_apps21 20 22 21 verbosity = int(options.get('verbosity', 1)) 23 22 interactive = options.get('interactive', True) -
django/django/views/generic/simple.py
1 from django.shortcuts import render_to_response2 1 from django.template import loader, RequestContext 3 2 from django.http import HttpResponse, HttpResponsePermanentRedirect, HttpResponseGone 4 3 -
django/django/dispatch/saferef.py
1 1 """Refactored "safe reference" from dispatcher.py""" 2 2 import weakref, traceback 3 from django.utils.functional import curry4 3 5 4 def safeRef(target, onDelete = None): 6 5 """Return a *safe* weak reference to a callable target -
django/django/dispatch/dispatcher.py
25 25 deletion, (considerably speeds up the cleanup process 26 26 vs. the original code.) 27 27 """ 28 import types,weakref28 import weakref 29 29 from django.dispatch import saferef, robustapply, errors 30 30 31 31 __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>" -
django/django/contrib/formtools/tests.py
1 1 from django import forms 2 2 from django.contrib.formtools import preview 3 3 from django import http 4 from django.conf import settings5 4 from django.test import TestCase 6 5 7 6 success_string = "Done was called!" -
django/django/contrib/syndication/feeds.py
1 1 from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist 2 from django.template import Context,loader, Template, TemplateDoesNotExist2 from django.template import loader, Template, TemplateDoesNotExist 3 3 from django.contrib.sites.models import Site, RequestSite 4 4 from django.utils import feedgenerator 5 5 from django.utils.encoding import smart_unicode, iri_to_uri -
django/django/contrib/admin/views/main.py
6 6 from django.db.models.query import QuerySet 7 7 from django.utils.encoding import force_unicode, smart_str 8 8 from django.utils.translation import ugettext 9 from django.utils.safestring import mark_safe10 9 from django.utils.http import urlencode 11 10 import operator 12 11 -
django/django/contrib/databrowse/plugins/calendars.py
4 4 from django.contrib.databrowse.sites import DatabrowsePlugin 5 5 from django.shortcuts import render_to_response 6 6 from django.utils.text import capfirst 7 from django.utils.translation import get_date_formats8 7 from django.utils.encoding import force_unicode 9 8 from django.utils.safestring import mark_safe 10 9 from django.views.generic import date_based -
django/django/contrib/databrowse/plugins/fieldchoices.py
6 6 from django.utils.text import capfirst 7 7 from django.utils.encoding import smart_str, force_unicode 8 8 from django.utils.safestring import mark_safe 9 from django.views.generic import date_based10 9 import urllib 11 10 12 11 class FieldChoicePlugin(DatabrowsePlugin): -
django/django/contrib/databrowse/views.py
1 from django.db.models import FieldDoesNotExist, DateTimeField2 1 from django.http import Http404 3 2 from django.shortcuts import render_to_response 4 from django.contrib.databrowse.datastructures import EasyModel, EasyChoice5 3 6 4 ########### 7 5 # CHOICES # -
django/django/contrib/databrowse/sites.py
1 1 from django import http 2 2 from django.db import models 3 from django.contrib.databrowse.datastructures import EasyModel , EasyChoice3 from django.contrib.databrowse.datastructures import EasyModel 4 4 from django.shortcuts import render_to_response 5 5 from django.utils.safestring import mark_safe 6 6 -
django/django/contrib/auth/decorators.py
1 1 try: 2 2 from functools import wraps, update_wrapper 3 3 except ImportError: 4 from django.utils.functional import wraps,update_wrapper # Python 2.3, 2.4 fallback.4 from django.utils.functional import update_wrapper # Python 2.3, 2.4 fallback. 5 5 6 6 from django.contrib.auth import REDIRECT_FIELD_NAME 7 7 from django.http import HttpResponseRedirect -
django/django/contrib/auth/forms.py
2 2 from django.contrib.auth import authenticate 3 3 from django.contrib.sites.models import Site 4 4 from django.template import Context, loader 5 from django.core import validators6 5 from django import forms 7 6 from django.utils.translation import ugettext_lazy as _ 8 7 -
django/django/contrib/admindocs/views.py
5 5 from django.db import models 6 6 from django.shortcuts import render_to_response 7 7 from django.core.exceptions import ImproperlyConfigured, ViewDoesNotExist 8 from django.http import Http404 , get_host8 from django.http import Http404 9 9 from django.core import urlresolvers 10 10 from django.contrib.admindocs import utils 11 11 from django.contrib.sites.models import Site -
django/django/contrib/sessions/backends/cache.py
1 from django.conf import settings2 1 from django.contrib.sessions.backends.base import SessionBase 3 2 from django.core.cache import cache 4 3 -
django/django/contrib/sessions/backends/db.py
1 1 import datetime 2 2 3 from django.conf import settings4 3 from django.contrib.sessions.models import Session 5 4 from django.contrib.sessions.backends.base import SessionBase 6 5 from django.core.exceptions import SuspiciousOperation -
django/django/utils/dateformat.py
13 13 14 14 from django.utils.dates import MONTHS, MONTHS_3, MONTHS_AP, WEEKDAYS, WEEKDAYS_ABBR 15 15 from django.utils.tzinfo import LocalTimezone 16 from django.utils.translation import string_concat,ugettext as _16 from django.utils.translation import ugettext as _ 17 17 from django.utils.encoding import force_unicode 18 18 from calendar import isleap, monthrange 19 19 import re, time -
django/django/utils/encoding.py
3 3 import datetime 4 4 5 5 from django.utils.functional import Promise 6 from django.utils.safestring import SafeData, mark_safe7 6 8 7 class DjangoUnicodeDecodeError(UnicodeDecodeError): 9 8 def __init__(self, obj, *args): -
django/django/contrib/auth/management/commands/createsuperuser.py
7 7 import re 8 8 import sys 9 9 from optparse import make_option 10 from django.contrib.auth.models import User , UNUSABLE_PASSWORD10 from django.contrib.auth.models import User 11 11 from django.core import validators 12 12 from django.core.management.base import BaseCommand, CommandError 13 13 -
django/django/contrib/admin/options.py
1 from django import oldforms,template1 from django import template 2 2 from django import forms 3 3 from django.forms.formsets import all_valid 4 4 from django.forms.models import modelform_factory, inlineformset_factory -
django/django/contrib/admin/widgets.py
7 7 from django import forms 8 8 from django.forms.widgets import RadioFieldRenderer 9 9 from django.forms.util import flatatt 10 from django.utils.datastructures import MultiValueDict 11 from django.utils.text import capfirst, truncate_words 10 from django.utils.text import truncate_words 12 11 from django.utils.translation import ugettext as _ 13 12 from django.utils.safestring import mark_safe 14 13 from django.utils.encoding import force_unicode -
django/django/contrib/auth/admin.py
1 1 from django.contrib.auth.models import User, Group 2 2 from django.core.exceptions import PermissionDenied 3 from django import oldforms,template3 from django import template 4 4 from django.shortcuts import render_to_response 5 5 from django.http import HttpResponseRedirect 6 6 from django.utils.translation import ugettext, ugettext_lazy as _