mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
MIME type guessing - removed one duplicate call to libmagic
This commit is contained in:
parent
e8fcea6cd6
commit
1d64dc44c8
1 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue