mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
fix import in email.message_from_binary_file()
Parser => BytesParser
This commit is contained in:
parent
512d2cc643
commit
0c4cc559cb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue