From: Victor Stinner Date: Tue, 25 Jan 2011 23:15:47 +0000 (+0000) Subject: fix import in email.message_from_binary_file() X-Git-Tag: v3.2rc2~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c4cc559cbef20a917367415af011c29ce6d334e;p=thirdparty%2FPython%2Fcpython.git fix import in email.message_from_binary_file() Parser => BytesParser --- diff --git a/Lib/email/__init__.py b/Lib/email/__init__.py index c54a2c77f5e5..bd316fdaf382 100644 --- a/Lib/email/__init__.py +++ b/Lib/email/__init__.py @@ -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)