10000 gh-68966: Deprecate the mailcap module by vstinner · Pull Request #91951 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-68966: Deprecate the mailcap module #91951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use warnings_helper.import_deprecated()
  • Loading branch information
vstinner committed Apr 26, 2022
commit dc9db721f701c9e88385cc849aad9b66742b8050
6 changes: 2 additions & 4 deletions Lib/test/test_mailcap.py
68E7
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
import unittest
import warnings
from test.support import os_helper
from test.support import warnings_helper


with warnings.catch_warnings():
# mailcap is deprecated
warnings.simplefilter('ignore', DeprecationWarning)
import mailcap
mailcap = warnings_helper.import_deprecated('mailcap')


# Location of mailcap file
Expand Down
0