bpo-31107: Fix copyreg mangled slot names calculation. (#2989)

4 files changed