[Patches] Fix for aifc.py

Sjoerd Mullender sjoerd@oratrix.nl
Tue, 07 Mar 2000 16:08:41 +0100

The (relatively) new chunk module uses seek, not setpos.  One instance
of the call still needed to be fixed.

Index: aifc.py
RCS file: /projects/cvsroot/python/dist/src/Lib/aifc.py,v
retrieving revision 1.35
diff -u -r1.35 aifc.py
--- aifc.py	2000/02/02 15:10:15	1.35
+++ aifc.py	2000/03/07 15:04:25
@@ -404,7 +404,7 @@
             dummy = self._ssnd_chunk.read(8)
             pos = self._soundpos * self._framesize
             if pos:
-                self._ssnd_chunk.setpos(pos + 8)
+                self._ssnd_chunk.seek(pos + 8)
             self._ssnd_seek_needed = 0
         if nframes == 0:
             return ''

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under copyright,
patent or other rights or interests ("claims").  To the extent that I
have any such claims, I hereby grant to CNRI a nonexclusive,
irrevocable, royalty-free, worldwide license to reproduce, distribute,
perform and/or display publicly, prepare derivative versions, and
otherwise use this contribution as part of the Python software and its
related documentation, or any derivative versions thereof, at no cost
to CNRI or its licensed users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide whether or
not to incorporate this contribution in the Python software and its
related documentation.  I further grant CNRI permission to use my name
and other identifying information provided to CNRI by me for use in
connection with the Python software and its related documentation.

-- Sjoerd Mullender <sjoerd.mullender@oratrix.com>