mirror of https://github.com/CIRCL/AIL-framework
MIME type guessing - removed one duplicate call to libmagic
parent
e8fcea6cd6
commit
1d64dc44c8
|
@ -134,10 +134,7 @@ class Paste(object):
|
||||||
:Example: PST._set_p_encoding()
|
:Example: PST._set_p_encoding()
|
||||||
|
|
||||||
"""
|
"""
|
||||||
try:
|
return self.p_mime
|
||||||
return magic.Magic(mime_encoding=True).from_buffer(self.get_p_content())
|
|
||||||
except magic.MagicException:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def _set_p_hash_kind(self, hashkind):
|
def _set_p_hash_kind(self, hashkind):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue