commit | 57da2de9b18c218fe38e1b75895f01167642e7e4 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Oct 13 13:19:45 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Oct 13 13:19:45 2007 +0000 |
tree | c449592d9d14898b046c1c022d15f9c942392ce8 | |
parent | 137bdfa27aa21623b9000fc672d25576f0ca2a80 [diff] |
Fix email example.
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 @@ # 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'