[Python-checkins] CVS: python/dist/src/Lib sndhdr.py,1.6,1.7
Guido van Rossum
gvanrossum@users.sourceforge.net
Mon, 30 Jul 2001 23:27:09 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv13516
Modified Files:
sndhdr.py
Log Message:
Amazing. This would open the sound file in text mode. Fixed.
SF bug #446219.
Index: sndhdr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sndhdr.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** sndhdr.py 2001/02/15 22:15:13 1.6
--- sndhdr.py 2001/07/31 06:27:07 1.7
***************
*** 41,45 ****
def whathdr(filename):
"""Recognize sound headers"""
! f = open(filename, 'r')
h = f.read(512)
for tf in tests:
--- 41,45 ----
def whathdr(filename):
"""Recognize sound headers"""
! f = open(filename, 'rb')
h = f.read(512)
for tf in tests: