From 6d4200eb7cf07b69187d937a061703567b85975a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 6 Sep 2019 16:25:57 -0700 Subject: [PATCH] Alphabetize the extension mimetypes and mime directories. --- epubfile.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/epubfile.py b/epubfile.py index 3788431..dc2d9d8 100644 --- a/epubfile.py +++ b/epubfile.py @@ -27,28 +27,28 @@ HTML_LINK_PROPERTIES = { } EXTENSION_MIMETYPES = { - 'html': 'application/xhtml+xml', - 'xhtml': 'application/xhtml+xml', 'htm': 'application/xhtml+xml', + 'html': 'application/xhtml+xml', + 'otf': 'font/otf', + 'pls': 'application/pls+xml', 'smi': 'application/smil+xml', 'smil': 'application/smil+xml', 'sml': 'application/smil+xml', - 'pls': 'application/pls+xml', - 'otf': 'font/otf', 'ttf': 'font/ttf', 'woff': 'font/woff', 'woff2': 'font/woff2', + 'xhtml': 'application/xhtml+xml', } MIMETYPE_DIRECTORIES = { - 'application/x-dtbncx+xml': '.', 'application/font-sfnt': 'Fonts', + 'application/x-dtbncx+xml': '.', 'application/x-font-ttf': 'Fonts', 'application/xhtml+xml': 'Text', + 'audio': 'Audio', 'font': 'Fonts', 'image': 'Images', 'text/css': 'Styles', - 'audio': 'Audio', 'video': 'Video', }