From 3fc958282120dd46744d32a4a01d48bbb1ca0040 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 31 Jul 2001 06:27:07 +0000 Subject: Amazing. This would open the sound file in text mode. Fixed. SF bug #446219. --- Lib/sndhdr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/sndhdr.py b/Lib/sndhdr.py index 29f0760..df2ccf1 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) -- cgit v0.12