mirror of https://github.com/python/cpython.git
fix import in email.message_from_binary_file()
Parser => BytesParser
This commit is contained in:
parent
512d2cc643
commit
0c4cc559cb
|
@ -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…
Reference in New Issue