]> granicus.if.org Git - python/commit
When trying to write new bytecode, importlib was not catching the IOError
authorBrett Cannon <bcannon@gmail.com>
Sat, 7 Nov 2009 23:55:05 +0000 (23:55 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 7 Nov 2009 23:55:05 +0000 (23:55 +0000)
commite52c919d67a20b235de008aed8a165778d78b2a9
tree99b0dd63368ae71bc8dd00ff8d6cd6848e1fabfd
parent1b184d547f9421b586e92984960edc01bbb36307
When trying to write new bytecode, importlib was not catching the IOError
thrown if the file happened to be read-only to keep the failure silent.

Fixes issue #7187. Thanks, Dave Malcolm for the report and analysis of the
problem.
Lib/importlib/_bootstrap.py
Lib/importlib/test/source/test_file_loader.py
Misc/ACKS
Misc/NEWS