Use sndhdr instead of the obsolete whatsound module.

This commit is contained in:
Fred Drake 1999-02-24 18:49:15 +00:00
parent dbc8364e1f
commit 0652a4e7d5
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
import os
import tempfile
import pipes
import whatsound
import sndhdr
table = {}
@ -78,7 +78,7 @@ def _toaiff(filename, temps):
else:
fname = filename
try:
ftype = whatsound.whathdr(fname)
ftype = sndhdr.whathdr(fname)
if ftype:
ftype = ftype[0] # All we're interested in
except IOError: