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

Anthony Baxter anthonybaxter@users.sourceforge.net
2001年12月04日 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:

AltStyle によって変換されたページ (->オリジナル) /