From: Anthony Baxter Date: Wed, 5 Dec 2001 06:13:38 +0000 (+0000) Subject: backport 1.7: X-Git-Tag: v2.1.2c1~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e2470930f8401b40ce46e056727ef901487db50;p=thirdparty%2FPython%2Fcpython.git backport 1.7: Amazing. This would open the sound file in text mode. Fixed. SF bug #446219. --- diff --git a/Lib/sndhdr.py b/Lib/sndhdr.py index 29f0760c9e41..df2ccf17ba4b 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)