(self, filename)
return magic_file(self.cookie, filename)
Identify the contents of file `filename`
        raises IOError if the file does not exist
Identify the contents of file `filename`
        raises IOError if the file does not exist
Identify the contents of file filename raises IOError if the file does not exist
def from_file(self, filename):
        """
        Identify the contents of file `filename`
        raises IOError if the file does not exist
        """

        if not os.path.exists(filename):
            raise IOError("File does not exist: " + filename)

        return magic_file(self.cookie, filename)
def from_file ( self , filename ) : if not os . path . exists ( filename ) : raise IOError ( "File does not exist: " + filename ) return magic_file ( self . cookie , filename )