diff options
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r-- | Lib/aifc.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py index c03446fee0..015d3985d6 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -281,10 +281,11 @@ class Aifc_read: self._convert = None self._markers = [] self._soundpos = 0 - self._file = Chunk(file) - if self._file.getname() != b'FORM': + self._file = file + chunk = Chunk(file) + if chunk.getname() != b'FORM': raise Error('file does not start with FORM id') - formdata = self._file.read(4) + formdata = chunk.read(4) if formdata == b'AIFF': self._aifc = 0 elif formdata == b'AIFC': |