From 5fbf66370348d0310c2b9e477cbac099fad136a8 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 13 Oct 2007 13:20:03 +0000 Subject: Fix email example. --- Doc/includes/email-unpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v0.12