From 264e557b23ae7a39fa41ecbb78a25f3bbb292391 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Fri, 4 May 2018 06:26:01 -0500 Subject: [PATCH] Previewer/Code: Remove duplicate mimetype (#65) --- previewer_code/indico_previewer_code/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/previewer_code/indico_previewer_code/plugin.py b/previewer_code/indico_previewer_code/plugin.py index ea51576..fbf0c06 100644 --- a/previewer_code/indico_previewer_code/plugin.py +++ b/previewer_code/indico_previewer_code/plugin.py @@ -38,8 +38,7 @@ register_custom_mimetypes() class PygmentsPreviewer(Previewer): # All supported MIME types MIMETYPES = ('text/css', 'text/x-python', 'text/x-ruby-script', 'text/x-java-source', 'text/x-c', - 'application/javascript', 'text/x-c', 'text/x-fortran', 'text/x-csharp', 'text/php', - 'text/x-php') + 'application/javascript', 'text/x-fortran', 'text/x-csharp', 'text/php', 'text/x-php') # Python's mimetypes lib and Pygments do not quite agree on some MIME types CUSTOM_LEXERS = {