commit | 39de95b746c990e6a2fe9af5fad01747f58b2e5f | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Sep 12 00:43:22 2019 +0100 |
committer | GitHub <noreply@github.com> | Thu Sep 12 00:43:22 2019 +0100 |
tree | e493945a5beed10740ec8711b7579f3bdc5edf02 | |
parent | ee536b2020b1f0baad1286dbd4345e13870324af [diff] |
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.