mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
* toaiff.py: import whatsound instead of sndhdr
* sndhdr.py: renamed to whatsound.py; use new aifc module for AIFF/AIFC * ftplib.py: added close() (closes without sending QUIT command) * aifc.py: documented close()
This commit is contained in:
parent
f3f753132a
commit
17ed1ae163
5 changed files with 551 additions and 6 deletions
|
@ -9,7 +9,7 @@
|
|||
import os
|
||||
import tempfile
|
||||
import pipes
|
||||
import sndhdr
|
||||
import whatsound
|
||||
|
||||
table = {}
|
||||
|
||||
|
@ -78,7 +78,7 @@ def _toaiff(filename, temps):
|
|||
else:
|
||||
fname = filename
|
||||
try:
|
||||
ftype = sndhdr.whathdr(fname)
|
||||
ftype = whatsound.whathdr(fname)
|
||||
if ftype:
|
||||
ftype = ftype[0] # All we're interested in
|
||||
except IOError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue