@raise_if_none('cookie', MagicError, 'object has already been closed')
    def list(self, paths=None):
        "Print list of magic strings"
        pathstr = b':'.join(iter_encode(paths)) if paths else None
        try:
            api.magic_list(self.cookie, pathstr)
        except __HOLE__:
            msg = 'list is not supported on this version of libmagic'
            raise MagicError(msg)
dataset/ETHPy150Open aliles/filemagic/magic/identify.py/Magic.list