mirror of
https://github.com/python/cpython.git
synced 2025-08-26 11:45:20 +00:00
gh-68966: Deprecate the mailcap module (#91951)
This commit is contained in:
parent
b87f7f2c21
commit
80de0273c0
7 changed files with 29 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue