diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/sndhdr.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |