Skip to content

Commit

Permalink
Convert DataSource Destroy() calls to setting the variable to None. O…
Browse files Browse the repository at this point in the history
…SGeo#6033

Removing these two "= None" assignments also appears to pass the test, but
keeping them in for now.


git-svn-id: https://svn.osgeo.org/gdal/trunk@29533 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
schwehr committed Jul 16, 2015
1 parent 691e7cc commit 2b89a0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autotest/ogr/ogr_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ def copy_shape_to_geojson(gjname, compress = None):
shp_lyr = None
lyr = None

# Required by old-gen python bindings
ds.Destroy()
ds = None

return True

Expand Down Expand Up @@ -615,7 +614,7 @@ def ogr_geojson_14():
out_lyr.CreateFeature(out_feat)
feat = lyr.GetNextFeature()

out_ds.Destroy()
out_ds = None

return 'success'

Expand Down

0 comments on commit 2b89a0b

Please sign in to comment.