diff options
author | Georg Brandl <georg@python.org> | 2007-10-13 13:20:03 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-13 13:20:03 (GMT) |
commit | 5fbf66370348d0310c2b9e477cbac099fad136a8 (patch) | |
tree | 0bf467b317d68c3e116754d870ecba380b6ad576 /Doc/includes | |
parent | d40f126fffbb05e1f46dff3d2e0f3e8b1938de1c (diff) | |
download | cpython-5fbf66370348d0310c2b9e477cbac099fad136a8.zip cpython-5fbf66370348d0310c2b9e477cbac099fad136a8.tar.gz cpython-5fbf66370348d0310c2b9e477cbac099fad136a8.tar.bz2 |
Fix email example.
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/email-unpack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-unpack.py b/Doc/includes/email-unpack.py index fc05d99..daf2470 100644 --- a/Doc/includes/email-unpack.py +++ b/Doc/includes/email-unpack.py @@ -53,7 +53,7 @@ Usage: %prog [options] msgfile # 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' |