From ebea896e208686b41a04d58f8adeff2623c7ee5d Mon Sep 17 00:00:00 2001 From: Sjoerd Mullender Date: Mon, 3 Oct 1994 10:21:06 +0000 Subject: [PATCH] Ignore empty markers. --- Lib/aifc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/aifc.py b/Lib/aifc.py index 22bff01916d..d13a3b17be5 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -593,7 +593,11 @@ def _readmark(self, chunk): id = _read_short(chunk) pos = _read_long(chunk) name = _read_string(chunk) - self._markers.append((id, pos, name)) + if pos or name: + # some files appear to have + # dummy markers consisting of + # a position 0 and name '' + self._markers.append((id, pos, name)) except EOFError: print 'Warning: MARK chunk contains only', print len(self._markers),