summaryrefslogtreecommitdiffstats
path: root/Tools/faqwiz
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-12 22:23:59 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-12 22:23:59 (GMT)
commit9f0f960d4ce48062dcb286903721fa89d6037159 (patch)
tree4640c5dd2f0ffc54affa131fe6b48cb70d480b71 /Tools/faqwiz
parenta0c0a4a2616e83084052a34c9806b3308f5799db (diff)
downloadcpython-9f0f960d4ce48062dcb286903721fa89d6037159.zip
cpython-9f0f960d4ce48062dcb286903721fa89d6037159.tar.gz
cpython-9f0f960d4ce48062dcb286903721fa89d6037159.tar.bz2
Remove traces of rfc822.
Diffstat (limited to 'Tools/faqwiz')
-rw-r--r--Tools/faqwiz/faqwiz.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/faqwiz/faqwiz.py b/Tools/faqwiz/faqwiz.py
index 15342f1..260e1aa 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}