original_docstring: Checks to see if the requested shapefile file object is
          available. If not a ShapefileException is raised.
docstring: Checks to see if the requested shapefile file object is
  available. If not a ShapefileException is raised.
docstring_tokens: Checks to see if the requested shapefile file object is available . If not a ShapefileException is raised .
code: def __getFileObj(self, f):
          """Checks to see if the requested shapefile file object is
          available. If not a ShapefileException is raised."""
          if not f:
              raise ShapefileException("Shapefile Reader requires a shapefile or file-like object.")
          if self.shp and self.shpLength is None:
              self.load()
          if self.dbf and len(self.fields) == 0:
              self.load()
          return f
code_tokens: def __getFileObj ( self , f ) : if not f : raise ShapefileException ( "Shapefile Reader requires a shapefile or file-like object." ) if self . shp and self . shpLength is None : self . load ( ) if self . dbf and len ( self . fields ) == 0 : self . load ( ) return f
short_docstring: Checks to see if the requested shapefile file object is
  available.
short_docstring_tokens: Checks to see if the requested shapefile file object is available .
comment: """Checks to see if the requested shapefile file object is
          available. If not a ShapefileException is raised."""