summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-13 13:19:45 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-13 13:19:45 (GMT)
commit57da2de9b18c218fe38e1b75895f01167642e7e4 (patch)
treec449592d9d14898b046c1c022d15f9c942392ce8 /Doc
parent137bdfa27aa21623b9000fc672d25576f0ca2a80 (diff)
downloadcpython-57da2de9b18c218fe38e1b75895f01167642e7e4.zip
cpython-57da2de9b18c218fe38e1b75895f01167642e7e4.tar.gz
cpython-57da2de9b18c218fe38e1b75895f01167642e7e4.tar.bz2
Fix email example.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/email-unpack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/email-unpack.py b/Doc/lib/email-unpack.py
index fc05d99..daf2470 100644
--- a/Doc/lib/email-unpack.py
+++ b/Doc/lib/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'