diff options
author | Guido van Rossum <guido@python.org> | 2007-08-13 17:50:00 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-13 17:50:00 +0000 |
commit | 3f35a4f34f66d6a28f6de8e0d3dd04093e000a8c (patch) | |
tree | 253e368da4f569933f9644e0982bbe7df0376788 /Python/pythonrun.c | |
parent | 2b1e7af786a44c32c2c0e52fb215fabdeb873162 (diff) | |
download | cpython-3f35a4f34f66d6a28f6de8e0d3dd04093e000a8c.tar.gz |
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')
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions