Skip to content

Commit

Permalink
Fixed #25926 -- Removed gis.utils.ogrinfo.sample backwards compatibil…
Browse files Browse the repository at this point in the history
…ity alias.
  • Loading branch information
sir-sigurd authored and timgraham committed Dec 12, 2015
1 parent f7889b8 commit ed7b1bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion django/contrib/gis/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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
Expand Down
3 changes: 0 additions & 3 deletions django/contrib/gis/utils/ogrinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,3 @@ def ogrinfo(data_source, num_features=10):
else:
output += ' (None)'
print(output)

# For backwards compatibility.
sample = ogrinfo

0 comments on commit ed7b1bd

Please sign in to comment.