mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Amazing. This would open the sound file in text mode. Fixed.
SF bug #446219.
This commit is contained in:
parent
ce5f13ae41
commit
3fc9582821
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def what(filename):
|
||||||
|
|
||||||
def whathdr(filename):
|
def whathdr(filename):
|
||||||
"""Recognize sound headers"""
|
"""Recognize sound headers"""
|
||||||
f = open(filename, 'r')
|
f = open(filename, 'rb')
|
||||||
h = f.read(512)
|
h = f.read(512)
|
||||||
for tf in tests:
|
for tf in tests:
|
||||||
res = tf(h, f)
|
res = tf(h, f)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue