Permalink
Browse files

Fixed a string detection in ogrinspect.py

  • Loading branch information...
1 parent c916673 commit 6140795150b3811d5969315c02556861575e87eb @claudep claudep committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/utils/ogrinspect.py
@@ -123,7 +123,7 @@ def _ogrinspect(data_source, model_name, geom_name='geom', layer_key=0, srid=Non
to the given data source. See the `ogrinspect` docstring for more details.
"""
# Getting the DataSource
- if isinstance(data_source, str):
+ if isinstance(data_source, six.string_types):
data_source = DataSource(data_source)
elif isinstance(data_source, DataSource):
pass

0 comments on commit 6140795

Please sign in to comment.