[Python-checkins] r58444 - python/branches/release25-maint/Doc/lib/email-unpack.py
georg.brandl
python-checkins at python.org
Sat Oct 13 15:19:45 CEST 2007
Author: georg.brandl
Date: Sat Oct 13 15:19:45 2007
New Revision: 58444
Modified:
python/branches/release25-maint/Doc/lib/email-unpack.py
Log:
Fix email example.
Modified: python/branches/release25-maint/Doc/lib/email-unpack.py
==============================================================================
--- python/branches/release25-maint/Doc/lib/email-unpack.py (original)
+++ python/branches/release25-maint/Doc/lib/email-unpack.py Sat Oct 13 15:19:45 2007
@@ -53,7 +53,7 @@
# email message can't be used to overwrite important files
filename = part.get_filename()
if not filename:
- ext = mimetypes.guess_extension(part.get_type())
+ ext = mimetypes.guess_extension(part.get_content_type())
if not ext:
# Use a generic bag-of-bits extension
ext = '.bin'
More information about the Python-checkins
mailing list