summaryrefslogtreecommitdiff
path: root/Lib/email
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-01-25 23:15:47 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2011-01-25 23:15:47 +0000
commitc4d83edd9d60becdc50d7df7269ec69c26290758 (patch)
treec7c4107ebdf4fac186a376894d29ef7d2a04004d /Lib/email
parent148bce15a2f62b2f95c36ec6595865060f8f2dba (diff)
downloadcpython-c4d83edd9d60becdc50d7df7269ec69c26290758.tar.gz
fix import in email.message_from_binary_file()
Parser => BytesParser
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/__init__.py b/Lib/email/__init__.py
index c54a2c77f5..bd316fdaf3 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)