Kaydet (Commit) 0c4cc559 authored tarafından Victor Stinner's avatar Victor Stinner

fix import in email.message_from_binary_file()

Parser => BytesParser
üst 512d2cc6
......@@ -59,5 +59,5 @@ def message_from_binary_file(fp, *args, **kws):
Optional _class and strict are passed to the Parser constructor.
"""
from email.parser import Parser
from email.parser import BytesParser
return BytesParser(*args, **kws).parse(fp)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment