1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #28559 -- Removed contrib.gis.gdal.OGRException backwards compatibility alias.

This commit is contained in:
Nick Pope
2017-09-02 13:52:01 +01:00
committed by Tim Graham
parent 18dd9ba481
commit f9c2fd30be
3 changed files with 7 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ from django.contrib.gis.gdal.datasource import DataSource
from django.contrib.gis.gdal.driver import Driver
from django.contrib.gis.gdal.envelope import Envelope
from django.contrib.gis.gdal.error import (
GDALException, OGRException, OGRIndexError, SRSException, check_err,
GDALException, OGRIndexError, SRSException, check_err,
)
from django.contrib.gis.gdal.geometries import OGRGeometry
from django.contrib.gis.gdal.geomtype import OGRGeomType
@@ -41,7 +41,7 @@ from django.contrib.gis.gdal.srs import CoordTransform, SpatialReference
__all__ = (
'Driver', 'DataSource', 'CoordTransform', 'Envelope', 'GDALException',
'GDALRaster', 'GDAL_VERSION', 'OGRException', 'OGRGeometry', 'OGRGeomType',
'OGRIndexError', 'SpatialReference', 'SRSException',
'check_err', 'gdal_version', 'gdal_full_version',
'GDALRaster', 'GDAL_VERSION', 'OGRGeometry', 'OGRGeomType',
'OGRIndexError', 'SpatialReference', 'SRSException', 'check_err',
'gdal_version', 'gdal_full_version',
)

View File

@@ -10,10 +10,6 @@ class GDALException(Exception):
pass
# Legacy name
OGRException = GDALException
class SRSException(Exception):
pass