summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-08-26 15:50:43 (GMT)
committerGuido van Rossum <guido@python.org>1999-08-26 15:50:43 (GMT)
commit3601e88cb3a41f805216e9b9feda591f678f4014 (patch)
tree74f25f71e81582d0e051aa8bbd87902afe2957c6 /Lib/aifc.py
parent2900ff93821743eef54d46e65b84c1afa497ef2b (diff)
downloadcpython-3601e88cb3a41f805216e9b9feda591f678f4014.zip
cpython-3601e88cb3a41f805216e9b9feda591f678f4014.tar.gz
cpython-3601e88cb3a41f805216e9b9feda591f678f4014.tar.bz2
Sjoerd Mullender writes:
""" Extended chunk so that it can also handle formats that are almost according to EA IFF 85. In particular, added options to handle little-endian and to handle formats that include the header size in the chunk size value. Fixed a bug where the header size was included in the chunk size, which it isn't according to EA IFF 85. Added a new method getsize() to get the size of the chunk (excluding header). Fixed chunk documentation (TIFF doesn't look like it uses chunks). Converted wave to use chunk. Wave uses EA IFF 85 chunks except that it uses little-endian encoding of integer data. Removed __del__ methods from aifc and wave since I got an AttributeError there upon exit. """
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r--Lib/aifc.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index a4d9616..6c19dea 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -293,8 +293,6 @@ class Aifc_read:
self._comm_chunk_read = 0
while 1:
self._ssnd_seek_needed = 1
- #DEBUG: SGI's soundfiler has a bug. There should
- # be no need to check for EOF here.
try:
chunk = Chunk(self._file)
except EOFError:
@@ -337,10 +335,6 @@ class Aifc_read:
# else, assume it is an open file object already
self.initfp(f)
- def __del__(self):
- if self._file:
- self.close()
-
#
# User visible methods.
#