diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-05-06 12:50:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 12:50:52 (GMT) |
commit | d6fa1d4beef2bf9d83048469667e0ba5f2b41068 (patch) | |
tree | b66abf9ee52374b128c494d1443445f817aec702 /Doc/includes | |
parent | d3c7821335f88d92297622ad1ec17b33b9baf5cd (diff) | |
download | cpython-d6fa1d4beef2bf9d83048469667e0ba5f2b41068.zip cpython-d6fa1d4beef2bf9d83048469667e0ba5f2b41068.tar.gz cpython-d6fa1d4beef2bf9d83048469667e0ba5f2b41068.tar.bz2 |
gh-66543: Add mimetypes.guess_file_type() (GH-117258)
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/email-dir.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py index 2fc1570..aa2a5c7 100644 --- a/Doc/includes/email-dir.py +++ b/Doc/includes/email-dir.py @@ -53,7 +53,7 @@ must be running an SMTP server. # Guess the content type based on the file's extension. Encoding # will be ignored, although we should check for simple things like # gzip'd or compressed files. - ctype, encoding = mimetypes.guess_type(path) + ctype, encoding = mimetypes.guess_file_type(path) if ctype is None or encoding is not None: # No guess could be made, or the file is encoded (compressed), so # use a generic bag-of-bits type. |