'Identify the contents of file `filename`
raises IOError if the file does not exist'

def from_file(self, filename):

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