compileall used the ctime of bytecode and source to determine if the bytecode
commit17cf4a9ca9eabae8ae6a638a0ec90eb10599c0ce
authorbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 10 Feb 2009 02:07:38 +0000 (10 02:07 +0000)
committerbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 10 Feb 2009 02:07:38 +0000 (10 02:07 +0000)
tree46d4a6bef22291a3f6cfdfb64e26efbc9018adbf
parentf3729cb21e6ecdb4814f41e3166d6d55a86465de
compileall used the ctime of bytecode and source to determine if the bytecode
should be recreated. This created a timing hole. Fixed by just doing what
import does; check the mtime and magic number.

git-svn-id: http://svn.python.org/projects/python/trunk@69481 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/compileall.py
Lib/test/test_compileall.py [new file with mode: 0644]
Misc/ACKS
Misc/NEWS