mirror of https://github.com/python/cpython.git
Use sndhdr instead of the obsolete whatsound module.
This commit is contained in:
parent
dbc8364e1f
commit
0652a4e7d5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue