Fix inspect.getmodule to use a copy of sys.modules for iteration (#13487).
This fixes a regression compared to 2.x, where sys.modules.items() returns a copy, as indicated by a comment in the source. Diagnosis and patch by Erik Tollerud.
É
Éric Araujo committed
a74f8ef419d2c7c5f398a80165f8d8fd5e4d7b8e
Parent: c4d7d8c