Skip to content

Commit 3a70c36

Browse files
Neil Lyonsfelixxm
Neil Lyons
authored andcommitted
[3.1.x] Refs #32230 -- Fixed DataSource example in GeoDjango tutorial.
DataSource.ds_input doesn't support pathlib.Path(). Regression in 26554cf. Backport of e46ca51 from master
1 parent a7935fe commit 3a70c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ref/contrib/gis/tutorial.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Now, open the world borders shapefile using GeoDjango's
331331
:class:`~django.contrib.gis.gdal.DataSource` interface::
332332

333333
>>> from django.contrib.gis.gdal import DataSource
334-
>>> ds = DataSource(world_shp)
334+
>>> ds = DataSource(str(world_shp))
335335
>>> print(ds)
336336
/ ... /geodjango/world/data/TM_WORLD_BORDERS-0.3.shp (ESRI Shapefile)
337337

0 commit comments

Comments
 (0)