MIME type guessing - removed one duplicate call to libmagic

pull/18/head
Alexandre Dulaunoy 2014-08-20 10:22:33 +02:00
parent e8fcea6cd6
commit 1d64dc44c8
1 changed files with 1 additions and 4 deletions

View File

@ -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):
"""