summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2017-09-02 13:52:01 +0100
committerTim Graham <timograham@gmail.com>2017-09-02 08:52:01 -0400
commitf9c2fd30beecf34614775c067739da3cff64c243 (patch)
tree612aa6b4127272b5f5a400999b15e2d0f6ded669 /django
parent18dd9ba4812fb85297a6fab19ea2404cd60b8ad0 (diff)
Fixed #28559 -- Removed contrib.gis.gdal.OGRException backwards compatibility alias.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/gdal/__init__.py8
-rw-r--r--django/contrib/gis/gdal/error.py4
2 files changed, 4 insertions, 8 deletions
diff --git a/django/contrib/gis/gdal/__init__.py b/django/contrib/gis/gdal/__init__.py
index 4c217dd5b3..6893f0daf7 100644
--- a/django/contrib/gis/gdal/__init__.py
+++ b/django/contrib/gis/gdal/__init__.py
@@ -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',
)
diff --git a/django/contrib/gis/gdal/error.py b/django/contrib/gis/gdal/error.py
index a6ac98a306..5c29c7c849 100644
--- a/django/contrib/gis/gdal/error.py
+++ b/django/contrib/gis/gdal/error.py
@@ -10,10 +10,6 @@ class GDALException(Exception):
pass
-# Legacy name
-OGRException = GDALException
-
-
class SRSException(Exception):
pass