Fixed bug in the rewritten mime-magic code.

- Legacy-Id: 5877
This commit is contained in:
Henrik Levkowetz 2013-07-25 15:20:21 +00:00
parent 4ed0337cae
commit a8c2bc80e9

View file

@ -32,6 +32,7 @@ class PlainParser(FileParser):
def parse_file_charset(self):
import magic
self.fd.file.seek(0)
content = self.fd.file.read()
if hasattr(magic, "open"):
m = magic.open(magic.MAGIC_MIME)
m.load()