summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-17 22:00:24 (GMT)
committerGitHub <noreply@github.com>2019-06-17 22:00:24 (GMT)
commitac7b1a3f32cc81520e8962352294006d65744028 (patch)
treee92021fabcbc998940d243e5911473d50149c038 /Lib/aifc.py
parent8fac1221097aaf6ac37ed9ea727ee7892085e183 (diff)
downloadcpython-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/aifc.py')
-rw-r--r--Lib/aifc.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index 1916e7e..ed5da7d 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -138,7 +138,7 @@ import struct
import builtins
import warnings
-__all__ = ["Error", "open", "openfp"]
+__all__ = ["Error", "open"]
class Error(Exception):
pass
@@ -920,10 +920,6 @@ def open(f, mode=None):
else:
raise Error("mode must be 'r', 'rb', 'w', or 'wb'")
-def openfp(f, mode=None):
- warnings.warn("aifc.openfp is deprecated since Python 3.7. "
- "Use aifc.open instead.", DeprecationWarning, stacklevel=2)
- return open(f, mode=mode)
if __name__ == '__main__':
import sys