mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-08-04 00:58:53 -04:00
12 lines
283 B
Python
12 lines
283 B
Python
from win2xcur.parser.ani import ANIParser
|
|
from win2xcur.parser.cur import CURParser
|
|
|
|
PARSERS = [CURParser, ANIParser]
|
|
|
|
|
|
def open_blob(blob):
|
|
for parser in PARSERS:
|
|
if parser.can_parse(blob):
|
|
return parser(blob)
|
|
raise ValueError('Unsupported file format')
|