Skip to content
Merged
Show file tree
Hide file tree
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
Next Next commit
deprecate sunau
  • Loading branch information
brettcannon committed Apr 17, 2022
commit 404c6b7ef07ac1962b877c6019be516006004e06
2 changes: 2 additions & 0 deletions Lib/sunau.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
from collections import namedtuple
import warnings

warnings._deprecated(__name__, remove=(3, 13))


_sunau_params = namedtuple('_sunau_params',
'nchannels sampwidth framerate nframes comptype compname')
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ossaudiodev.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

ossaudiodev = import_helper.import_module('ossaudiodev')
audioop = warnings_helper.import_deprecated('audioop')
sunau = warnings_helper.import_deprecated('sunau')

import errno
import sys
import sunau
import time
import unittest

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_sunau.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import io
import struct
import sys
import sunau
from test.support import warnings_helper

sunau = warnings_helper.import_deprecated("sunau")
audioop = warnings_helper.import_deprecated("audioop")


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate the sunau module.