From 9f0f960d4ce48062dcb286903721fa89d6037159 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 12 Jun 2008 22:23:59 +0000 Subject: Remove traces of rfc822. --- Tools/faqwiz/faqwiz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tools/faqwiz/faqwiz.py') diff --git a/Tools/faqwiz/faqwiz.py b/Tools/faqwiz/faqwiz.py index 15342f1f94..260e1aaa23 100644 --- a/Tools/faqwiz/faqwiz.py +++ b/Tools/faqwiz/faqwiz.py @@ -207,8 +207,8 @@ class FaqEntry: self.file = file self.sec, self.num = sec_num if fp: - import rfc822 - self.__headers = rfc822.Message(fp) + import email + self.__headers = email.message_from_file(fp) self.body = fp.read().strip() else: self.__headers = {'title': "%d.%d. " % sec_num} -- cgit v1.2.1