[Python-checkins] r88196 - python/branches/py3k/Lib/email/__init__.py

victor.stinner python-checkins at python.org
Wed Jan 26 00:15:47 CET 2011


Author: victor.stinner
Date: Wed Jan 26 00:15:47 2011
New Revision: 88196

Log:
fix import in email.message_from_binary_file()

Parser => BytesParser

Modified:
   python/branches/py3k/Lib/email/__init__.py

Modified: python/branches/py3k/Lib/email/__init__.py
==============================================================================
--- python/branches/py3k/Lib/email/__init__.py	(original)
+++ python/branches/py3k/Lib/email/__init__.py	Wed Jan 26 00:15:47 2011
@@ -59,5 +59,5 @@
 
     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)


More information about the Python-checkins mailing list