diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-12 00:04:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-12 00:04:27 (GMT) |
commit | a5a7102636de82e0687af7131357762337d49c7c (patch) | |
tree | 4df73b6e16ff0c31e2cda16590ba5ec4d227f25a /Doc/whatsnew/2.5.rst | |
parent | 8af4e0c9942424b0dc6f5e882ce0bbd36f5fbb96 (diff) | |
download | cpython-a5a7102636de82e0687af7131357762337d49c7c.zip cpython-a5a7102636de82e0687af7131357762337d49c7c.tar.gz cpython-a5a7102636de82e0687af7131357762337d49c7c.tar.bz2 |
closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007)
The >=, checking whether a module index was in already in the module-by-index list, needed to be strict.
Also, fold nested ifs into one and fix some bad spacing.
(cherry picked from commit 39de95b746c990e6a2fe9af5fad01747f58b2e5f)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'Doc/whatsnew/2.5.rst')
0 files changed, 0 insertions, 0 deletions