(self, name, mode='r', *args, **kwargs)
return self.opener(name, mode=mode, *args, **kwargs)
Find a resource and return a file object, or raise IOError.
Find a resource and return a file object, or raise IOError.
Find a resource and return a file object or raise IOError .
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(name, mode=mode, *args, **kwargs)
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 ( name , mode = mode , * args , * * kwargs )