If a module injects something into sys.modules as a side-effect of
importation, then respect that injection. Discovered thanks to Lib/xml/parsers/expat.py injecting xml.parsers.expat.errors and etree now importing that directly as a module.
B
Brett Cannon committed
927d87470a0b6f7b0ca3f3a1b39fd3bdc0ec919a
Parent: 368b4b7