diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-17 22:00:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 22:00:24 (GMT) |
commit | ac7b1a3f32cc81520e8962352294006d65744028 (patch) | |
tree | e92021fabcbc998940d243e5911473d50149c038 /Lib/sunau.py | |
parent | 8fac1221097aaf6ac37ed9ea727ee7892085e183 (diff) | |
download | cpython-ac7b1a3f32cc81520e8962352294006d65744028.zip cpython-ac7b1a3f32cc81520e8962352294006d65744028.tar.gz cpython-ac7b1a3f32cc81520e8962352294006d65744028.tar.bz2 |
bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169)
aifc.openfp() alias to aifc.open(), sunau.openfp() alias to
sunau.open(), and wave.openfp() alias to wave.open() have been
removed. They were deprecated since Python 3.7.
Diffstat (limited to 'Lib/sunau.py')
-rw-r--r-- | Lib/sunau.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/sunau.py b/Lib/sunau.py index 129502b..79750a9 100644 --- a/Lib/sunau.py +++ b/Lib/sunau.py @@ -104,7 +104,7 @@ is destroyed. """ from collections import namedtuple -import warnings + _sunau_params = namedtuple('_sunau_params', 'nchannels sampwidth framerate nframes comptype compname') @@ -524,8 +524,3 @@ def open(f, mode=None): return Au_write(f) else: raise Error("mode must be 'r', 'rb', 'w', or 'wb'") - -def openfp(f, mode=None): - warnings.warn("sunau.openfp is deprecated since Python 3.7. " - "Use sunau.open instead.", DeprecationWarning, stacklevel=2) - return open(f, mode=mode) |