MIME type guessing - removed one duplicate call to libmagic

This commit is contained in:
Alexandre Dulaunoy 2014-08-20 10:22:33 +02:00
parent e8fcea6cd6
commit 1d64dc44c8

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