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

@ -1,10 +1,15 @@
import mailcap
import os
import copy
import test.support
from test.support import os_helper
import unittest
import os
import sys
import test.support
import unittest
import warnings
from test.support import os_helper
from test.support import warnings_helper
mailcap = warnings_helper.import_deprecated('mailcap')
# Location of mailcap file
MAILCAPFILE = test.support.findfile("mailcap.txt")