summaryrefslogtreecommitdiffstats
path: root/Lib/sndhdr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sndhdr.py')
-rw-r--r--Lib/sndhdr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sndhdr.py b/Lib/sndhdr.py
index 7ecafb4..5943531 100644
--- a/Lib/sndhdr.py
+++ b/Lib/sndhdr.py
@@ -160,7 +160,7 @@ def test_wav(h, f):
return None
f.seek(0)
try:
- w = wave.openfp(f, 'r')
+ w = wave.open(f, 'r')
except (EOFError, wave.Error):
return None
return ('wav', w.getframerate(), w.getnchannels(),