gh-91217: deprecate-sndhdr (#91806)

Also inline necessary functionality from `sndhdr` into `email.mime.audio` for `MIMEAudio`.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Brett Cannon 2022-04-22 15:48:03 -07:00 committed by GitHub
parent 5576ddbbbc
commit e7929cba16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 16 deletions

View file

@ -1,7 +1,10 @@
import sndhdr
import pickle
import unittest
from test.support import findfile
from test.support import warnings_helper
sndhdr = warnings_helper.import_deprecated("sndhdr")
class TestFormats(unittest.TestCase):
def test_data(self):