From 1d64dc44c8f006edb54f54d605496b4475d1de44 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 20 Aug 2014 10:22:33 +0200 Subject: [PATCH] MIME type guessing - removed one duplicate call to libmagic --- bin/packages/Paste.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/packages/Paste.py b/bin/packages/Paste.py index 2d9b5790..fddae0f9 100755 --- a/bin/packages/Paste.py +++ b/bin/packages/Paste.py @@ -134,10 +134,7 @@ class Paste(object): :Example: PST._set_p_encoding() """ - try: - return magic.Magic(mime_encoding=True).from_buffer(self.get_p_content()) - except magic.MagicException: - pass + return self.p_mime def _set_p_hash_kind(self, hashkind): """