summaryrefslogtreecommitdiffstats
path: root/Lib/email/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email/parser.py')
-rw-r--r--Lib/email/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/parser.py b/Lib/email/parser.py
index 0f92160..1aab012 100644
--- a/Lib/email/parser.py
+++ b/Lib/email/parser.py
@@ -11,12 +11,12 @@ from io import StringIO, TextIOWrapper
from email.feedparser import FeedParser
from email.message import Message
-from email import policy
+from email._policybase import compat32
class Parser:
- def __init__(self, _class=Message, *, policy=policy.default):
+ def __init__(self, _class=Message, *, policy=compat32):
"""Parser of RFC 2822 and MIME email messages.
Creates an in-memory object tree representing the email message, which