diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-26 20:43:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 20:43:50 (GMT) |
commit | 80de0273c0caf8bae19787bb00255eb3fb2a2d0c (patch) | |
tree | eae25b99f66f046643c7990716ee7bd1b1c8ff2c /Lib/mailcap.py | |
parent | b87f7f2c213225cbe5c4bd8f8a83883e0824c7d0 (diff) | |
download | cpython-80de0273c0caf8bae19787bb00255eb3fb2a2d0c.zip cpython-80de0273c0caf8bae19787bb00255eb3fb2a2d0c.tar.gz cpython-80de0273c0caf8bae19787bb00255eb3fb2a2d0c.tar.bz2 |
gh-68966: Deprecate the mailcap module (#91951)
Diffstat (limited to 'Lib/mailcap.py')
-rw-r--r-- | Lib/mailcap.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/mailcap.py b/Lib/mailcap.py index ae416a8..856b6a5 100644 --- a/Lib/mailcap.py +++ b/Lib/mailcap.py @@ -6,6 +6,12 @@ import warnings __all__ = ["getcaps","findmatch"] +_DEPRECATION_MSG = ('The {name} module is deprecated and will be removed in ' + 'Python {remove}. See the mimetypes module for an ' + 'alternative.') +warnings._deprecated(__name__, _DEPRECATION_MSG, remove=(3, 13)) + + def lineno_sort_key(entry): # Sort in ascending order, with unspecified entries at the end if 'lineno' in entry: |