summaryrefslogtreecommitdiff
path: root/Lib/sndhdr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-31 06:27:07 +0000
committerGuido van Rossum <guido@python.org>2001-07-31 06:27:07 +0000
commit3fc958282120dd46744d32a4a01d48bbb1ca0040 (patch)
treec6c10692032b3b6d8327126df590f24cc904d680 /Lib/sndhdr.py
parentce5f13ae418a03665c099416a25e5e0acce184cb (diff)
downloadcpython-git-3fc958282120dd46744d32a4a01d48bbb1ca0040.tar.gz
Amazing. This would open the sound file in text mode. Fixed.
SF bug #446219.
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 29f0760c9e..df2ccf17ba 100644
--- a/Lib/sndhdr.py
+++ b/Lib/sndhdr.py
@@ -40,7 +40,7 @@ def what(filename):
def whathdr(filename):
"""Recognize sound headers"""
- f = open(filename, 'r')
+ f = open(filename, 'rb')
h = f.read(512)
for tf in tests:
res = tf(h, f)