SIGN IN SIGN UP

bpo-41993: Fix possible issues in remove_module() (GH-22631)

* PyMapping_HasKey() is not safe because it silences all exceptions and can return incorrect result.
* Informative exceptions from PyMapping_DelItem() are overridden with RuntimeError and
  the original exception raised before calling remove_module() is lost.
* There is a race condition between PyMapping_HasKey() and PyMapping_DelItem().
S
Serhiy Storchaka committed
8287aadb75f6bd0154996424819334cd3839707c
Parent: fa1d83d
Committed by GitHub <noreply@github.com> on 10/11/2020, 1:51:07 PM