diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-03-05 01:04:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 01:04:38 (GMT) |
commit | 6b452ff97f70eca79ab956987cc04b6586feca00 (patch) | |
tree | 81dce6258b5ad5f0e33b61fbf8a961eaae747adc /Lib/idlelib/hyperparser.py | |
parent | 5a3926d55922bf62faaeab664844dd69df04ab42 (diff) | |
download | cpython-6b452ff97f70eca79ab956987cc04b6586feca00.zip cpython-6b452ff97f70eca79ab956987cc04b6586feca00.tar.gz cpython-6b452ff97f70eca79ab956987cc04b6586feca00.tar.bz2 |
bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. (GH-18786)
`list(sys.modules.items())` was apparently not immune to "dictionary
changed size during iteration" errors.
Tested internally using an integration test that has run into this a couple of times in the past two years. With this patch applied, the test is no longer flaky.
(cherry picked from commit 85cf1d514b84dc9a4bcb40e20a12e1d82ff19f20)
Co-authored-by: Gregory P. Smith <gps@google.com>
Diffstat (limited to 'Lib/idlelib/hyperparser.py')
0 files changed, 0 insertions, 0 deletions