From 6140795150b3811d5969315c02556861575e87eb Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 8 Dec 2012 12:19:18 +0100 Subject: [PATCH] Fixed a string detection in ogrinspect.py --- django/contrib/gis/utils/ogrinspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/utils/ogrinspect.py b/django/contrib/gis/utils/ogrinspect.py index 1c870eaa30..08d3b40397 100644 --- a/django/contrib/gis/utils/ogrinspect.py +++ b/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