[Python-checkins] CVS: python/dist/src/Lib sndhdr.py,1.6,1.6.4.1

Anthony Baxter anthonybaxter@users.sourceforge.net
Tue, 04 Dec 2001 22:13:40 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv28123

Modified Files:
      Tag: release21-maint
	sndhdr.py 
Log Message:
backport 1.7:
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.6.4.1
diff -C2 -d -r1.6 -r1.6.4.1
*** sndhdr.py	2001/02/15 22:15:13	1.6
--- sndhdr.py	2001/12/05 06:13:38	1.6.4.1
***************
*** 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: