From a8c2bc80e92b07bb3d8db950f26399d7bad8611a Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 25 Jul 2013 15:20:21 +0000 Subject: [PATCH] Fixed bug in the rewritten mime-magic code. - Legacy-Id: 5877 --- ietf/submit/parsers/plain_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ietf/submit/parsers/plain_parser.py b/ietf/submit/parsers/plain_parser.py index 10cf09aab..6377d0a97 100644 --- a/ietf/submit/parsers/plain_parser.py +++ b/ietf/submit/parsers/plain_parser.py @@ -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()