]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use sndhdr instead of the obsolete whatsound module.
authorFred Drake <fdrake@acm.org>
Wed, 24 Feb 1999 18:49:15 +0000 (18:49 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 24 Feb 1999 18:49:15 +0000 (18:49 +0000)
Lib/toaiff.py

index 0001be022fd2dff67e46778becf52c258f79baa6..1e735264857781089aa6cff5da42c8d177aa4a0d 100644 (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: