Commit a84d79f5 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

[py3] Added Python 3 compatibility for xrange.

parent ca07fda2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ from django.contrib.gis.gdal.layer import Layer
from django.contrib.gis.gdal.prototypes import ds as capi

from django.utils import six
from django.utils.six.moves import xrange

# For more information, see the OGR C API source code:
#  http://www.gdal.org/ogr/ogr__api_8h.html
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ from django.contrib.gis.gdal.geometries import OGRGeometry, OGRGeomType
from django.contrib.gis.gdal.prototypes import ds as capi, geom as geom_api

from django.utils import six
from django.utils.six.moves import xrange

# For more information, see the OGR C API source code:
#  http://www.gdal.org/ogr/ogr__api_8h.html
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ from django.contrib.gis.gdal.prototypes import geom as capi, srs as srs_api
from django.contrib.gis.geometry.regex import hex_regex, wkt_regex, json_regex

from django.utils import six
from django.utils.six.moves import xrange

# For more information, see the OGR C API source code:
#  http://www.gdal.org/ogr/ogr__api_8h.html
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ from django.contrib.gis.gdal.srs import SpatialReference
from django.contrib.gis.gdal.prototypes import ds as capi, geom as geom_api, srs as srs_api

from django.utils import six
from django.utils.six.moves import xrange

# For more information, see the OGR C API source code:
#  http://www.gdal.org/ogr/ogr__api_8h.html
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ except ImportError:
from django.contrib.gis.gdal import (OGRGeometry, OGRGeomType, OGRException,
    OGRIndexError, SpatialReference, CoordTransform, GDAL_VERSION)
from django.contrib.gis.geometry.test_data import TestDataMixin
from django.utils.six.moves import xrange
from django.utils import unittest

class OGRGeomTest(unittest.TestCase, TestDataMixin):
Loading