Beispiel #1
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr and capi:
         capi.destroy_feature(self._ptr)
Beispiel #2
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr:
         capi.destroy_feature(self._ptr)
from django.contrib.gis.gdal.base import GDALBase
Beispiel #4
0
 def __del__(self):
     "Releases a reference to this object."
     try:
         capi.destroy_feature(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected
Beispiel #5
0
 def __del__(self):
     "Releases a reference to this object."
     try:
         capi.destroy_feature(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected