commit | c9341281625071479dfee3ba85e552f18dfa3a36 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Aug 13 17:50:00 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Aug 13 17:50:00 2007 +0000 |
tree | 58bebd062f0fe8f007170c53e77a2b186117758b | |
parent | 4c269c59287ec2f40db4c899e163ce6946742dbd [diff] |
Improved patches for sndhdr and imghdr by Victor Stinner, who writes: - fix "h[sbseek] == b'\1'" and "ratecode = ord(h[sbseek+4])" in test_voc() - avoid division by zero - use startswith method: replace h[:2] == b'BM' by h.startswith(b'BM') - use aifc.open() instead of old aifc.openfp() - use ord(b'P') instead of ord('P')