mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
gh-91217: deprecate imghdr (#91461)
* Deprecate imghdr Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update Doc/whatsnew/3.11.rst Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Inline `imghdr` into `email.mime.image` Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Barry Warsaw <barry@python.org>
This commit is contained in:
parent
dfbc792a4b
commit
3fc57e8f6f
8 changed files with 128 additions and 23 deletions
|
|
@ -7,6 +7,7 @@
|
|||
import base64
|
||||
import unittest
|
||||
import textwrap
|
||||
import warnings
|
||||
|
||||
from io import StringIO, BytesIO
|
||||
from itertools import chain
|
||||
|
|
@ -1591,7 +1592,6 @@ def test_add_header(self):
|
|||
header='foobar'), missing)
|
||||
|
||||
|
||||
|
||||
# Test the basic MIMEApplication class
|
||||
class TestMIMEApplication(unittest.TestCase):
|
||||
def test_headers(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue