[py3] Removed duplicate imports.

Fixed #18837. Refs #18791.
This commit is contained in:
Aymeric Augustin 2012-08-23 10:16:16 +02:00
parent e06189f7ce
commit 5301a9d7b1
4 changed files with 2 additions and 7 deletions

View File

@ -1,16 +1,15 @@
from django.db import connections from django.db import connections
from django.db.models.query import QuerySet, ValuesQuerySet, ValuesListQuerySet from django.db.models.query import QuerySet, ValuesQuerySet, ValuesListQuerySet
from django.utils import six
from django.contrib.gis.db.models import aggregates from django.contrib.gis.db.models import aggregates
from django.contrib.gis.db.models.fields import get_srid_info, PointField, LineStringField from django.contrib.gis.db.models.fields import get_srid_info, PointField, LineStringField
from django.contrib.gis.db.models.sql import AreaField, DistanceField, GeomField, GeoQuery from django.contrib.gis.db.models.sql import AreaField, DistanceField, GeomField, GeoQuery
from django.contrib.gis.geometry.backend import Geometry from django.contrib.gis.geometry.backend import Geometry
from django.contrib.gis.measure import Area, Distance from django.contrib.gis.measure import Area, Distance
from django.utils import six
from django.utils import six from django.utils import six
class GeoQuerySet(QuerySet): class GeoQuerySet(QuerySet):
"The Geographic QuerySet." "The Geographic QuerySet."

View File

@ -10,8 +10,6 @@ import decimal
import sys import sys
import warnings import warnings
from django.utils import six
def _setup_environment(environ): def _setup_environment(environ):
import platform import platform
# Cygwin requires some special voodoo to set the environment variables # Cygwin requires some special voodoo to set the environment variables

View File

@ -18,7 +18,6 @@ from django.utils.datastructures import SortedDict
from django.utils import six from django.utils import six
from django.utils.text import get_text_list, capfirst from django.utils.text import get_text_list, capfirst
from django.utils.translation import ugettext_lazy as _, ugettext from django.utils.translation import ugettext_lazy as _, ugettext
from django.utils import six
__all__ = ( __all__ = (

View File

@ -1,11 +1,9 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import re import re
from django.utils import six
import unicodedata import unicodedata
import warnings import warnings
from gzip import GzipFile from gzip import GzipFile
from django.utils.six.moves import html_entities
from io import BytesIO from io import BytesIO
from django.utils.encoding import force_text from django.utils.encoding import force_text
@ -15,6 +13,7 @@ if not six.PY3:
from django.utils.encoding import force_unicode from django.utils.encoding import force_unicode
from django.utils.functional import allow_lazy, SimpleLazyObject from django.utils.functional import allow_lazy, SimpleLazyObject
from django.utils import six from django.utils import six
from django.utils.six.moves import html_entities
from django.utils.translation import ugettext_lazy, ugettext as _, pgettext from django.utils.translation import ugettext_lazy, ugettext as _, pgettext
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe