gh-68966: Deprecate the mailcap module (#91951)

This commit is contained in:
Victor Stinner 2022-04-26 22:43:50 +02:00 committed by GitHub
parent b87f7f2c21
commit 80de0273c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 8 deletions

View file

@ -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: