예제 #1
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr and capi:
         capi.destroy_feature(self._ptr)
예제 #2
0
 def __del__(self):
     "Releases a reference to this object."
     if self._ptr:
         capi.destroy_feature(self._ptr)
예제 #3
0
from django.contrib.gis.gdal.base import GDALBase
예제 #4
0
파일: feature.py 프로젝트: nbsky/django
 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
예제 #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