Fixed #25926 -- Removed gis.utils.ogrinfo.sample backwards compatibility alias.

This commit is contained in:
Sergey Fedoseev 2015-12-12 21:25:41 +05:00 committed by Tim Graham
parent f7889b83b0
commit ed7b1bdf01
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -49,6 +49,3 @@ def ogrinfo(data_source, num_features=10):
else:
output += ' (None)'
print(output)
# For backwards compatibility.
sample = ogrinfo