fix import in email.message_from_binary_file()

Parser => BytesParser
This commit is contained in:
Victor Stinner 2011-01-25 23:15:47 +00:00
parent 512d2cc643
commit 0c4cc559cb
1 changed files with 1 additions and 1 deletions

View File

@ -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)