Commit c4d83edd authored by Victor Stinner's avatar Victor Stinner

fix import in email.message_from_binary_file()

Parser => BytesParser
parent 148bce15
...@@ -59,5 +59,5 @@ def message_from_binary_file(fp, *args, **kws): ...@@ -59,5 +59,5 @@ def message_from_binary_file(fp, *args, **kws):
Optional _class and strict are passed to the Parser constructor. 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) 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