summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-13 13:20:03 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-13 13:20:03 (GMT)
commit5fbf66370348d0310c2b9e477cbac099fad136a8 (patch)
tree0bf467b317d68c3e116754d870ecba380b6ad576 /Doc/includes
parentd40f126fffbb05e1f46dff3d2e0f3e8b1938de1c (diff)
downloadcpython-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.py2
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'