diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-02-07 10:44:16 -0500 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-02-07 10:44:16 -0500 |
commit | aa21297457ef0e5647602e19a89c4b797183c16e (patch) | |
tree | c670249e97be11f526b9df3c5443dfd7f8e39f53 /Lib/email/parser.py | |
parent | 11c5afd1383656e78d35a8405729c207d2287bdd (diff) | |
download | cpython-git-aa21297457ef0e5647602e19a89c4b797183c16e.tar.gz |
#20476: use EmailMessage as factory if non-compat32 policy is used.
In 3.5 I will fix this right by adding a message_factory attribute
to the policy.
Diffstat (limited to 'Lib/email/parser.py')
-rw-r--r-- | Lib/email/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/parser.py b/Lib/email/parser.py index f49d31d43d..ed512b114f 100644 --- a/Lib/email/parser.py +++ b/Lib/email/parser.py @@ -17,7 +17,7 @@ from email._policybase import compat32 class Parser: - def __init__(self, _class=Message, *, policy=compat32): + def __init__(self, _class=None, *, policy=compat32): """Parser of RFC 2822 and MIME email messages. Creates an in-memory object tree representing the email message, which |