parameters: (self, name, mode='r', *args, **kwargs)
return_statement: return self.opener(fname, mode=mode, *args, **kwargs)
docstring: Find a resource and return a file object, or raise IOError.
docstring_summary: Find a resource and return a file object, or raise IOError.
docstring_tokens: Find a resource and return a file object or raise IOError .
function: def open(self, name, mode='r', *args, **kwargs):
          ''' Find a resource and return a file object, or raise IOError. '''
          fname = self.lookup(name)
          if not fname: raise IOError("Resource %r not found." % name)
          return self.opener(fname, mode=mode, *args, **kwargs)
function_tokens: def open ( self , name , mode = 'r' , * args , * * kwargs ) : fname = self . lookup ( name ) if not fname : raise IOError ( "Resource %r not found." % name ) return self . opener ( fname , mode = mode , * args , * * kwargs )