This commit is contained in:
Kovid Goyal 2013-11-02 12:19:35 +05:30
parent 2e8a1be0c3
commit 363d10096b

View File

@ -14,11 +14,7 @@ def syntax_from_mime(mime):
return 'html'
if mime in OEB_STYLES:
return 'css'
if mime == guess_type('a.opf'):
return 'xml'
if mime == guess_type('a.ncx'):
return 'xml'
if mime == guess_type('a.xml'):
if mime in {guess_type('a.opf'), guess_type('a.ncx'), guess_type('a.xml')}:
return 'xml'
if mime.startswith('text/'):
return 'text'