mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
#756982: Remove rfc822 reference.
This commit is contained in:
parent
2b576d22af
commit
aa5b411b41
2 changed files with 3 additions and 7 deletions
|
@ -18,7 +18,6 @@ import copy
|
|||
import email
|
||||
import email.message
|
||||
import email.generator
|
||||
import rfc822
|
||||
import io
|
||||
try:
|
||||
if sys.platform == 'os2emx':
|
||||
|
@ -222,7 +221,7 @@ class Maildir(Mailbox):
|
|||
|
||||
colon = ':'
|
||||
|
||||
def __init__(self, dirname, factory=rfc822.Message, create=True):
|
||||
def __init__(self, dirname, factory=None, create=True):
|
||||
"""Initialize a Maildir instance."""
|
||||
Mailbox.__init__(self, dirname, factory, create)
|
||||
if not os.path.exists(self._path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue