*** H:/svn/gdal/swig/python/osgeo/ogr_old.py	Fri Feb 01 15:25:20 2008
--- H:/svn/gdal/swig/python/osgeo/ogr.py	Fri Feb 01 15:18:16 2008
***************
*** 5,10 ****
--- 5,12 ----
  
  import _ogr
  import new
+ import types
+ 
  new_instancemethod = new.instancemethod
  try:
      _swig_property = property
***************
*** 37,50 ****
      except: strthis = ""
      return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  
- import types
  try:
      _object = types.ObjectType
      _newclass = 1
  except AttributeError:
      class _object : pass
      _newclass = 0
- del types
  
  
  def _swig_setattr_nondynamic_method(set):
--- 39,50 ----
***************
*** 562,568 ****
      ] would return the first layer on the datasource.
      aname'] would return the layer named "aname".
      :4] would return a list of the first four layers."""
-         import types
          if isinstance(value, types.SliceType):
              output = []
              for i in xrange(value.start,value.stop,value.step):
--- 562,567 ----
***************
*** 582,588 ****
  
      def GetLayer(self,iLayer=0):
          """Return the layer given an index or a name"""
-         import types
          if isinstance(iLayer, types.StringTypes):
              return self.GetLayerByName(str(iLayer))
          elif isinstance(iLayer, types.IntType):
--- 581,586 ----
***************
*** 1823,1829 ****
              raise AttributeError, name
  
      def GetField(self, fld_index):
-         import types
          if isinstance(fld_index, types.StringType):
              fld_index = self.GetFieldIndex(fld_index)
          if (fld_index < 0) or (fld_index > self.GetFieldCount()):
--- 1821,1826 ----

