From: Fred Drake Date: Wed, 24 Feb 1999 18:49:15 +0000 (+0000) Subject: Use sndhdr instead of the obsolete whatsound module. X-Git-Tag: v1.5.2c1~252 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0652a4e7d5cf0f2480e205e84425e7406d84655b;p=thirdparty%2FPython%2Fcpython.git Use sndhdr instead of the obsolete whatsound module. --- diff --git a/Lib/toaiff.py b/Lib/toaiff.py index 0001be022fd2..1e7352648577 100644 --- a/Lib/toaiff.py +++ b/Lib/toaiff.py @@ -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: