mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #25926 -- Removed gis.utils.ogrinfo.sample backwards compatibility alias.
This commit is contained in:
parent
f7889b83b0
commit
ed7b1bdf01
@ -5,7 +5,7 @@ from django.contrib.gis.gdal import HAS_GDAL
|
||||
from django.contrib.gis.utils.wkt import precision_wkt # NOQA
|
||||
|
||||
if HAS_GDAL:
|
||||
from django.contrib.gis.utils.ogrinfo import ogrinfo, sample # NOQA
|
||||
from django.contrib.gis.utils.ogrinfo import ogrinfo # NOQA
|
||||
from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect # NOQA
|
||||
from django.contrib.gis.utils.srs import add_srs_entry # NOQA
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
@ -49,6 +49,3 @@ def ogrinfo(data_source, num_features=10):
|
||||
else:
|
||||
output += ' (None)'
|
||||
print(output)
|
||||
|
||||
# For backwards compatibility.
|
||||
sample = ogrinfo
|
||||
|
Loading…
Reference in New Issue
Block a user