diff options
author | Barry Warsaw <barry@python.org> | 2007-08-12 14:37:20 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2007-08-12 14:37:20 +0000 |
commit | 72937f3216b8d771d305be0ed65b12e458f5f685 (patch) | |
tree | 5a9e7a17627071daae6c2ef209f016859204fedb /Lib/idlelib/PyParse.py | |
parent | 46fc337395753e5b927f6dcccc549c54550b197e (diff) | |
download | cpython-git-72937f3216b8d771d305be0ed65b12e458f5f685.tar.gz |
Compare what's read from files against proper byte literals. Neither of these
modules have unittests AFAICT, and I'm not improving things here, but these
changes make a bunch of email package tests succeed, and command line testing
against real files seems to make things better.
Added an __main__ section to imghdr.py so that it can be run from the command
line similarly to sndhdr.py. Someone else can figure out a better -m way of
doing this.
In sndhdr.py do a couple of very minor cleanups, and use a with statement to
not wait for gc to close the file.
Diffstat (limited to 'Lib/idlelib/PyParse.py')
0 files changed, 0 insertions, 0 deletions