mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Remove traces of rfc822.
This commit is contained in:
parent
a0c0a4a261
commit
9f0f960d4c
6 changed files with 12 additions and 11 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue