From aa21297457ef0e5647602e19a89c4b797183c16e Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 7 Feb 2014 10:44:16 -0500 Subject: #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. --- Lib/email/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/email/parser.py') 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 -- cgit v1.2.1