summaryrefslogtreecommitdiffstats
path: root/Lib/email/parser.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-07 15:44:16 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-02-07 15:44:16 (GMT)
commitaa21297457ef0e5647602e19a89c4b797183c16e (patch)
treec670249e97be11f526b9df3c5443dfd7f8e39f53 /Lib/email/parser.py
parent11c5afd1383656e78d35a8405729c207d2287bdd (diff)
downloadcpython-aa21297457ef0e5647602e19a89c4b797183c16e.zip
cpython-aa21297457ef0e5647602e19a89c4b797183c16e.tar.gz
cpython-aa21297457ef0e5647602e19a89c4b797183c16e.tar.bz2
#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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/parser.py b/Lib/email/parser.py
index f49d31d..ed512b1 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